{"id":20676,"date":"2026-04-21T15:37:09","date_gmt":"2026-04-21T15:37:09","guid":{"rendered":"https:\/\/marketplace-marketplace.com\/?page_id=20676"},"modified":"2026-04-21T15:37:11","modified_gmt":"2026-04-21T15:37:11","slug":"marketplace-4","status":"publish","type":"page","link":"https:\/\/marketplace-marketplace.com\/index.php\/marketplace-4\/","title":{"rendered":"marketplace"},"content":{"rendered":"<div class=\"mpp-embed-wrap\">\n    <iframe\n        id=\"mppMarketplaceFrame\"\n        class=\"mpp-marketplace-frame\"\n        srcdoc=\"&lt;!DOCTYPE html&gt;\n&lt;html lang=&quot;en&quot;&gt;\n&lt;head&gt;\n&lt;meta charset=&quot;UTF-8&quot;&gt;\n&lt;meta name=&quot;viewport&quot; content=&quot;width=device-width, initial-scale=1.0, viewport-fit=cover&quot;&gt;\n&lt;title&gt;Marketplace Platform - Complete Marketplace&lt;\/title&gt;\n&lt;link href=&quot;https:\/\/fonts.googleapis.com\/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&amp;display=swap&quot; rel=&quot;stylesheet&quot;&gt;\n&lt;link rel=&quot;stylesheet&quot; href=&quot;https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/font-awesome\/6.5.1\/css\/all.min.css&quot;&gt;\n&lt;style&gt;\n* { margin: 0; padding: 0; box-sizing: border-box; }\n:root {\n--primary: #6366f1;\n--primary-dark: #4f46e5;\n--secondary: #f093fb;\n--success: #10b981;\n--warning: #f59e0b;\n--danger: #ef4444;\n--dark: #0f172a;\n--gray: #64748b;\n--light: #f8fafc;\n--card-bg: #ffffff;\n--border: #e2e8f0;\n}\nbody {\nfont-family: &#039;Inter&#039;, sans-serif;\nbackground: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);\ncolor: #0f172a;\nline-height: 1.5;\nmin-height: 100vh;\n}\n.navbar {\nbackground: rgba(255, 255, 255, 0.98);\nbackdrop-filter: blur(12px);\npadding: 0.9rem 2rem;\ndisplay: flex;\njustify-content: space-between;\nalign-items: center;\nflex-wrap: wrap;\ngap: 1rem;\nposition: sticky;\ntop: 0;\nz-index: 120;\nborder-bottom: 1px solid rgba(102, 126, 234, 0.2);\nbox-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);\n}\n.logo {\ndisplay: flex;\nalign-items: center;\ngap: 0.5rem;\nfont-size: 1.4rem;\nfont-weight: 800;\nbackground: linear-gradient(135deg, #667eea, #f093fb);\n-webkit-background-clip: text;\nbackground-clip: text;\ncolor: transparent;\n}\n.logo i { background: none; -webkit-text-fill-color: #f093fb; font-size: 1.8rem; }\n.nav-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }\n.nav-link {\npadding: 0.5rem 1.3rem;\nborder-radius: 60px;\nfont-weight: 600;\ncursor: pointer;\ntransition: all 0.3s;\nbackground: transparent;\ncolor: #4c1d95;\n}\n.nav-link i { margin-right: 8px; }\n.nav-link:hover, .nav-link.active {\nbackground: linear-gradient(135deg, #667eea, #f093fb);\ncolor: white;\nbox-shadow: 0 6px 14px rgba(102, 126, 234, 0.4);\ntransform: translateY(-2px);\n}\n.cart-icon { position: relative; }\n.cart-count {\nposition: absolute; top: -8px; right: -8px; background: #ff6b6b;\ncolor: white; border-radius: 40px; width: 20px; height: 20px;\nfont-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center;\n}\n.container { max-width: 1400px; margin: 0 auto; padding: 2rem 1.8rem; }\n\n\/* Ultra Modern Frames *\/\n.promo-modern {\nbackground: linear-gradient(135deg, #fffbeb, #fef3c7);\nborder-radius: 2rem;\npadding: 2rem;\nmargin-bottom: 1.8rem;\nborder: 1px solid #fde68a;\nbox-shadow: 0 20px 35px -12px rgba(245, 158, 11, 0.15);\nposition: relative;\noverflow: hidden;\n}\n.promo-modern::before { content: &#039;\ud83c\udf81&#039;; position: absolute; top: -30px; right: -30px; font-size: 150px; opacity: 0.08; pointer-events: none; }\n.promo-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }\n.promo-header i { font-size: 2.2rem; color: #f59e0b; }\n.promo-header h2 { font-size: 1.6rem; font-weight: 800; color: #b45309; }\n.promo-grid { display: flex; flex-wrap: wrap; gap: 2rem; }\n.promo-text { flex: 2; color: #78350f; font-size: 0.95rem; line-height: 1.6; }\n.promo-card-right { flex: 1; background: white; border-radius: 1.2rem; padding: 1.2rem; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }\n.gift-price { font-size: 2rem; font-weight: 900; color: #10b981; }\n.gift-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin: 0.8rem 0; }\n.gift-badge { background: #fef3c7; padding: 0.2rem 0.7rem; border-radius: 40px; font-size: 0.7rem; font-weight: 600; color: #92400e; }\n.btn-gift { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; border: none; border-radius: 60px; padding: 0.6rem 1.2rem; font-weight: 700; cursor: pointer; margin-top: 0.8rem; width: 100%; transition: 0.3s; }\n.shipping-modern {\nbackground: linear-gradient(135deg, #ecfdf5, #d1fae5);\nborder-radius: 1.5rem;\npadding: 1.5rem;\nmargin-bottom: 1.8rem;\nborder: 1px solid #a7f3d0;\ndisplay: flex;\nalign-items: center;\njustify-content: space-between;\nflex-wrap: wrap;\ngap: 1rem;\n}\n.shipping-left { display: flex; align-items: center; gap: 1rem; }\n.shipping-icon { background: white; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #10b981; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }\n.shipping-text h3 { font-size: 1.2rem; font-weight: 800; color: #064e3b; }\n.shipping-badge { background: #064e3b; color: white; padding: 0.5rem 1.2rem; border-radius: 60px; font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; gap: 0.5rem; }\n.affiliate-modern {\nbackground: linear-gradient(135deg, #fdf2f8, #fce7f3);\nborder-radius: 1.8rem;\npadding: 1.8rem;\nmargin-bottom: 2rem;\nborder: 1px solid #fbcfe8;\nposition: relative;\noverflow: hidden;\n}\n.affiliate-modern::before { content: &#039;\ud83d\udcb0&#039;; position: absolute; top: -30px; right: -30px; font-size: 120px; opacity: 0.08; pointer-events: none; }\n.affiliate-header { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem; }\n.affiliate-header i { font-size: 2rem; color: #ec4899; }\n.affiliate-header h2 { font-size: 1.5rem; font-weight: 800; color: #831843; }\n.affiliate-grid { display: flex; flex-wrap: wrap; gap: 1.8rem; }\n.affiliate-text { flex: 2; color: #4a044e; font-size: 0.95rem; }\n.affiliate-text ul { margin: 0.8rem 0 0.8rem 1.2rem; }\n.affiliate-card-right { flex: 1; background: white; border-radius: 1.2rem; padding: 1.2rem; text-align: center; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }\n.commission-large { font-size: 2.2rem; font-weight: 900; color: #ec4899; }\n.affiliate-stats { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0.8rem 0; }\n.affiliate-stat { background: #fce7f3; padding: 0.2rem 0.7rem; border-radius: 40px; font-size: 0.7rem; font-weight: 600; color: #be185d; }\n.btn-affiliate-modern { background: linear-gradient(135deg, #ec4899, #be185d); color: white; border: none; border-radius: 60px; padding: 0.6rem 1.2rem; font-weight: 700; cursor: pointer; width: 100%; text-decoration: none; display: inline-block; transition: 0.3s; }\n.hero {\nbackground: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);\nborder-radius: 2rem;\npadding: 2.5rem;\nmargin-bottom: 2rem;\ncolor: white;\n}\n.stats-badge { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }\n.stat-item { background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border-radius: 60px; padding: 0.3rem 1.2rem; font-size: 0.85rem; }\n.search-bar input {\nwidth: 100%;\npadding: 1rem 1.5rem;\nborder-radius: 80px;\nborder: none;\nbackground: white;\nfont-size: 1rem;\nbox-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);\n}\n.advanced-search {\nbackground: white;\nborder-radius: 1rem;\npadding: 1rem;\nmargin-bottom: 1.5rem;\ndisplay: flex;\nflex-wrap: wrap;\ngap: 1rem;\nalign-items: center;\nborder: 1px solid #e2e8f0;\n}\n.advanced-search input, .advanced-search select {\npadding: 0.6rem 1rem;\nborder: 1px solid #e2e8f0;\nborder-radius: 0.8rem;\nfont-size: 0.85rem;\nflex: 1;\nmin-width: 150px;\n}\n.advanced-search button {\nbackground: linear-gradient(135deg, #667eea, #f093fb);\nborder: none;\nborder-radius: 0.8rem;\npadding: 0.6rem 1.2rem;\ncolor: white;\nfont-weight: 600;\ncursor: pointer;\n}\n.niches-grid {\ndisplay: grid;\ngrid-template-columns: repeat(auto-fill, minmax(200px, 1fr));\ngap: 1.2rem;\nmargin: 1.5rem 0;\n}\n.niche-card {\nbackground: white;\nborder-radius: 1.2rem;\npadding: 1.2rem;\ncursor: pointer;\ntransition: all 0.3s;\nborder: 1px solid #e2e8f0;\ntext-align: center;\n}\n.niche-card:hover { transform: translateY(-5px); border-color: #667eea; box-shadow: 0 20px 30px -12px rgba(102,126,234,0.3); }\n.niche-icon { font-size: 2.2rem; margin-bottom: 0.5rem; color: #667eea; }\n.niche-name { font-weight: 700; font-size: 0.9rem; }\n.niche-stats { font-size: 0.65rem; color: #64748b; display: flex; justify-content: center; gap: 0.8rem; margin-top: 0.3rem; }\n.products-grid {\ndisplay: grid;\ngrid-template-columns: repeat(auto-fill, minmax(300px, 1fr));\ngap: 1.5rem;\nmargin: 1.5rem 0;\n}\n.product-card {\nbackground: white;\nborder-radius: 1.2rem;\noverflow: hidden;\ntransition: 0.3s;\nborder: 1px solid #e2e8f0;\n}\n.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.15); }\n.product-img { width: 100%; height: 180px; object-fit: cover; background: linear-gradient(135deg, #667eea, #f093fb); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; }\n.product-info { padding: 1rem; }\n.product-title { font-weight: 700; font-size: 0.95rem; }\n.product-price { color: #10b981; font-weight: 800; font-size: 1.2rem; }\n.product-seller { font-size: 0.7rem; color: #6b21a5; margin: 4px 0; }\n.product-type-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.65rem; font-weight: 600; margin-right: 0.5rem; }\n.badge-physical { background: #3b82f620; color: #1e40af; }\n.badge-digital { background: #8b5cf620; color: #5b21b6; }\n.btn-primary {\nbackground: linear-gradient(135deg, #667eea, #f093fb);\nwidth: 100%;\nborder: none;\nborder-radius: 40px;\npadding: 0.6rem;\nfont-weight: 700;\ncolor: white;\ncursor: pointer;\ntransition: 0.2s;\n}\n.seller-hub {\nbackground: linear-gradient(135deg, #1e293b, #0f172a);\nborder-radius: 2rem;\npadding: 2rem;\nmargin-bottom: 2rem;\ncolor: white;\n}\n.dashboard-grid {\ndisplay: grid;\ngrid-template-columns: repeat(auto-fit, minmax(500px, 1fr));\ngap: 1.8rem;\nmargin-top: 1.5rem;\n}\n.dashboard-card {\nbackground: white;\nborder-radius: 1.5rem;\npadding: 1.5rem;\nbox-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);\nborder: 1px solid #eef2ff;\n}\n.dashboard-card h3 { color: #4c1d95; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 1.2rem; }\n.free-notice { background: linear-gradient(135deg, #d1fae5, #a7f3d0); border-radius: 1rem; padding: 1rem; margin-bottom: 1.5rem; border-left: 6px solid #10b981; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }\n.free-badge-large { background: #10b981; color: white; padding: 0.3rem 1rem; border-radius: 40px; font-size: 0.7rem; font-weight: 700; display: inline-block; }\n.form-group { margin-bottom: 1rem; }\n.form-group label { display: block; margin-bottom: 0.3rem; font-weight: 600; font-size: 0.8rem; color: #6b21a5; }\n.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.7rem; border: 1px solid #e2e8f0; border-radius: 0.8rem; font-size: 0.9rem; }\n.btn-primary-action { background: linear-gradient(135deg, #667eea, #f093fb); width: 100%; border: none; border-radius: 60px; padding: 0.7rem; font-weight: 700; color: white; cursor: pointer; transition: 0.3s; }\n.dropzone { background: #faf9ff; border: 2px dashed #c4b5fd; border-radius: 1.2rem; padding: 1.4rem; text-align: center; cursor: pointer; transition: 0.2s; }\n.image-preview { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }\n.preview-img { width: 70px; height: 70px; object-fit: cover; border-radius: 12px; border: 1px solid #e9e4ff; }\n.products-list { max-height: 350px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8rem; }\n.product-item { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem; background: #faf9ff; border-radius: 1rem; border: 1px solid #e9e4ff; }\n.product-item-title { font-weight: 600; color: #4c1d95; }\n.product-item-price { color: #f59e0b; font-weight: 700; }\n.delete-btn { background: #ff6b6b; color: white; border: none; border-radius: 40px; padding: 0.3rem 0.8rem; cursor: pointer; font-size: 0.7rem; }\n.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }\n.stat-card { background: linear-gradient(135deg, #f5f0ff, #ede8ff); border-radius: 1rem; padding: 1rem; text-align: center; }\n.stat-number { font-size: 1.8rem; font-weight: 800; color: #667eea; }\n.shipping-rules { background: #f8fafc; border-radius: 1rem; padding: 1rem; margin-top: 1rem; border: 1px solid #e2e8f0; }\n.shipping-rule-row { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; align-items: center; flex-wrap: wrap; }\n.btn-small { background: #10b981; color: white; border: none; border-radius: 40px; padding: 0.3rem 0.8rem; font-size: 0.7rem; cursor: pointer; }\n.digital-fields { background: #f8fafc; border-radius: 1rem; padding: 1rem; margin-top: 1rem; border: 1px solid #e2e8f0; display: none; }\n.benefit-card { background: white; border-radius: 1.2rem; padding: 1.2rem; margin-top: 1rem; border: 1px solid #e2e8f0; transition: all 0.3s; }\n.benefit-card.ads { border-left: 4px solid #f59e0b; background: linear-gradient(135deg, #fff, #fffbeb); }\n.benefit-card.radio { border-left: 4px solid #0ea5e9; background: linear-gradient(135deg, #fff, #f0f9ff); }\n.benefit-card.website { border-left: 4px solid #10b981; background: linear-gradient(135deg, #fff, #ecfdf5); }\n.benefit-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }\n.benefit-title { font-size: 1rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }\n.benefit-value { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; padding: 0.2rem 0.6rem; border-radius: 40px; font-size: 0.7rem; font-weight: 700; }\n.benefit-value.radio { background: linear-gradient(135deg, #0ea5e9, #0284c7); }\n.benefit-value.website { background: linear-gradient(135deg, #10b981, #059669); }\n.benefit-desc { color: #475569; font-size: 0.85rem; margin-bottom: 0.8rem; }\n.benefit-list { margin: 0.8rem 0 0.8rem 1.2rem; font-size: 0.8rem; }\n.price-tag { font-size: 1.2rem; font-weight: 800; color: #d97706; margin: 0.5rem 0; }\n.eligibility-msg { font-size: 0.7rem; padding: 0.4rem; border-radius: 8px; margin-top: 0.8rem; display: flex; align-items: center; gap: 0.4rem; background: #fef3c7; color: #92400e; border-left: 3px solid #f59e0b; }\n.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; border: none; border-radius: 40px; padding: 0.6rem 1rem; font-weight: 700; cursor: pointer; transition: 0.3s; width: 100%; margin-top: 0.5rem; }\n.btn-blue { background: linear-gradient(135deg, #0ea5e9, #0284c7); }\n.btn-green { background: linear-gradient(135deg, #10b981, #059669); }\n.store-card {\nbackground: white;\nborder-radius: 1.5rem;\npadding: 1.5rem;\ntransition: all 0.3s;\nborder: 1px solid #e2e8f0;\ncursor: pointer;\n}\n.store-card:hover { transform: translateY(-5px); border-color: #667eea; box-shadow: 0 20px 30px -12px rgba(102,126,234,0.2); }\n.store-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }\n.store-avatar { width: 60px; height: 60px; background: linear-gradient(135deg, #667eea, #f093fb); border-radius: 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: white; }\n.store-info { flex: 1; }\n.store-name { font-weight: 800; font-size: 1.1rem; margin-bottom: 0.2rem; }\n.store-niche { font-size: 0.7rem; color: #64748b; }\n.store-rating { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.3rem; }\n.stars { color: #fbbf24; font-size: 0.7rem; }\n.stats-row { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid #e2e8f0; }\n.stat-badge { text-align: center; flex: 1; }\n.stat-badge-value { font-weight: 800; font-size: 1.1rem; color: #4c1d95; }\n.stat-badge-label { font-size: 0.65rem; color: #64748b; }\n.order-item {\nbackground: #f8fafc;\nborder-radius: 1rem;\npadding: 1rem;\nmargin-bottom: 1rem;\nborder: 1px solid #e2e8f0;\n}\n.order-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 0.8rem; padding-bottom: 0.5rem; border-bottom: 1px solid #e2e8f0; }\n.order-number { font-weight: 800; color: #4c1d95; font-size: 0.85rem; }\n.order-date { font-size: 0.7rem; color: #64748b; }\n.order-status { background: #10b98120; color: #065f46; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: 600; }\n.order-earnings { display: flex; justify-content: space-between; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid #e2e8f0; font-weight: 700; color: #10b981; }\n.view { display: none; }\n.view.active { display: block; }\n.btn-back {\nbackground: white;\nborder: 1px solid #e2e8f0;\nborder-radius: 40px;\npadding: 0.4rem 1.2rem;\nmargin-bottom: 1rem;\ncursor: pointer;\ndisplay: inline-flex;\nalign-items: center;\ngap: 6px;\n}\n.checkout-modal {\ndisplay: none;\nposition: fixed;\ntop: 0;\nleft: 0;\nwidth: 100%;\nheight: 100%;\nbackground: rgba(0, 0, 0, 0.85);\nbackdrop-filter: blur(8px);\nz-index: 2000;\njustify-content: center;\nalign-items: center;\npadding: 20px;\noverflow-y: auto;\n}\n.checkout-container {\nmax-width: 1100px;\nwidth: 100%;\nbackground: white;\nborder-radius: 2rem;\noverflow: hidden;\nbox-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);\nanimation: modalSlideIn 0.3s ease;\n}\n@keyframes modalSlideIn {\nfrom { opacity: 0; transform: translateY(30px); }\nto { opacity: 1; transform: translateY(0); }\n}\n.checkout-header {\nbackground: linear-gradient(135deg, #667eea, #764ba2);\npadding: 1.2rem 2rem;\ncolor: white;\ndisplay: flex;\njustify-content: space-between;\nalign-items: center;\n}\n.close-checkout {\nbackground: rgba(255,255,255,0.2);\nborder: none;\nwidth: 36px;\nheight: 36px;\nborder-radius: 50%;\ncolor: white;\nfont-size: 1.2rem;\ncursor: pointer;\n}\n.checkout-body {\ndisplay: grid;\ngrid-template-columns: 1fr 320px;\ngap: 1.5rem;\npadding: 1.8rem;\n}\n@media (max-width: 800px) { .checkout-body { grid-template-columns: 1fr; } }\n.form-section {\nbackground: #f8fafc;\nborder-radius: 1.2rem;\npadding: 1.2rem;\nmargin-bottom: 1.2rem;\nborder: 1px solid #e2e8f0;\n}\n.form-section h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: #4c1d95; display: flex; align-items: center; gap: 0.5rem; }\n.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-bottom: 0.8rem; }\n.form-group { margin-bottom: 0.8rem; }\n.form-group label { font-size: 0.7rem; font-weight: 600; color: #64748b; margin-bottom: 0.2rem; }\n.form-group input, .form-group select { width: 100%; padding: 0.6rem 0.8rem; border: 1px solid #e2e8f0; border-radius: 0.6rem; font-size: 0.85rem; }\n.payment-methods-grid {\ndisplay: grid;\ngrid-template-columns: repeat(5, 1fr);\ngap: 0.6rem;\nmargin-bottom: 1rem;\n}\n.payment-method-card {\ndisplay: flex;\nflex-direction: column;\nalign-items: center;\ngap: 0.3rem;\npadding: 0.6rem;\nborder: 2px solid #e2e8f0;\nborder-radius: 0.8rem;\ncursor: pointer;\nbackground: white;\ntext-align: center;\n}\n.payment-method-card.selected { border-color: #667eea; background: #f5f3ff; }\n.payment-icon { font-size: 1.3rem; }\n.payment-name { font-size: 0.7rem; font-weight: 600; }\n.payment-details { margin-top: 1rem; padding: 0.8rem; background: #f0fdf4; border-radius: 0.8rem; display: none; }\n.order-summary {\nbackground: linear-gradient(135deg, #1e293b, #0f172a);\nborder-radius: 1.2rem;\npadding: 1.2rem;\ncolor: white;\nposition: sticky;\ntop: 20px;\n}\n.cart-items-summary { max-height: 200px; overflow-y: auto; margin-bottom: 0.8rem; font-size: 0.75rem; }\n.cart-item-row { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid #334155; }\n.totals-row { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.85rem; }\n.totals-row.total { font-size: 1rem; font-weight: 800; border-top: 2px solid #f59e0b; margin-top: 0.4rem; padding-top: 0.6rem; color: #f59e0b; }\n.commission-note { font-size: 0.65rem; color: #94a3b8; text-align: center; margin-top: 0.8rem; }\n.place-order-btn {\nbackground: linear-gradient(135deg, #10b981, #059669);\nwidth: 100%;\nborder: none;\nborder-radius: 60px;\npadding: 0.8rem;\nfont-weight: 800;\ncolor: white;\nfont-size: 0.9rem;\ncursor: pointer;\nmargin-top: 0.8rem;\n}\n.toast-msg {\nposition: fixed;\nbottom: 20px;\nright: 20px;\nbackground: #1e293b;\ncolor: white;\npadding: 8px 16px;\nborder-radius: 40px;\nz-index: 2200;\nfont-size: 0.75rem;\n}\n@media (max-width: 768px) { .container { padding: 1rem; } .dashboard-grid { grid-template-columns: 1fr; } .payment-methods-grid { grid-template-columns: repeat(2, 1fr); } .promo-grid { flex-direction: column; } .affiliate-grid { flex-direction: column; } }\n&lt;\/style&gt;\n&lt;\/head&gt;\n&lt;body&gt;&lt;script&gt;window.MPP_EMBED_CONFIG = {&quot;ajaxUrl&quot;:&quot;https:\\\/\\\/marketplace-marketplace.com\\\/wp-admin\\\/admin-ajax.php&quot;,&quot;nonce&quot;:&quot;2baff9d18c&quot;,&quot;demoCheckout&quot;:true};&lt;\/script&gt;\n\n&lt;div class=&quot;navbar&quot;&gt;\n&lt;div class=&quot;logo&quot;&gt;&lt;i class=&quot;fas fa-store&quot;&gt;&lt;\/i&gt; Marketplace Platform&lt;br&gt;&lt;span style=&quot;font-size:0.7rem;&quot;&gt;Buy and Sell Products&lt;\/span&gt;&lt;\/div&gt;\n&lt;div class=&quot;nav-links&quot;&gt;\n&lt;a class=&quot;nav-link&quot; onclick=&quot;showView(&#039;home&#039;)&quot;&gt;&lt;i class=&quot;fas fa-home&quot;&gt;&lt;\/i&gt; Home&lt;\/a&gt;\n&lt;a class=&quot;nav-link&quot; onclick=&quot;showView(&#039;sellers&#039;)&quot;&gt;&lt;i class=&quot;fas fa-store&quot;&gt;&lt;\/i&gt; Sellers&lt;\/a&gt;\n&lt;a class=&quot;nav-link cart-icon&quot; onclick=&quot;showView(&#039;cart&#039;)&quot;&gt;&lt;i class=&quot;fas fa-shopping-cart&quot;&gt;&lt;\/i&gt; Cart &lt;span id=&quot;cartCount&quot; class=&quot;cart-count&quot; style=&quot;display:none;&quot;&gt;0&lt;\/span&gt;&lt;\/a&gt;\n&lt;a class=&quot;nav-link active&quot; onclick=&quot;showView(&#039;dashboard&#039;)&quot;&gt;&lt;i class=&quot;fas fa-chart-line&quot;&gt;&lt;\/i&gt; Seller Hub&lt;\/a&gt;\n&lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;div class=&quot;container&quot;&gt;\n&lt;div id=&quot;homeView&quot; class=&quot;view&quot;&gt;\n&lt;div class=&quot;promo-modern&quot;&gt;&lt;div class=&quot;promo-header&quot;&gt;&lt;i class=&quot;fas fa-gift&quot;&gt;&lt;\/i&gt;&lt;h2&gt;\ud83c\udf81 SPECIAL BUYER PROMOTION \u2013 $1000 GIFT! \ud83c\udf81&lt;\/h2&gt;&lt;\/div&gt;&lt;div class=&quot;promo-grid&quot;&gt;&lt;div class=&quot;promo-text&quot;&gt;&lt;p&gt;&lt;strong&gt;Dear buyers,&lt;\/strong&gt;&lt;\/p&gt;&lt;p&gt;If you shop and buy a product from any store placed on the Marketplace Platform for a period of &lt;strong&gt;one calendar year&lt;\/strong&gt; in the amount of at least &lt;strong&gt;$500&lt;\/strong&gt; and buy any product or service from the &lt;strong&gt;Marketing Plan (Individual 1, 2, 3 or Business - 1, 2, 3)&lt;\/strong&gt; or &lt;strong&gt;Decode Code&lt;\/strong&gt; in the amount of at least &lt;strong&gt;$500&lt;\/strong&gt;, you will receive a &lt;strong&gt;GIFT&lt;\/strong&gt; from the Marketplace Platform in the amount of &lt;strong&gt;$1000&lt;\/strong&gt;!&lt;\/p&gt;&lt;p&gt;\ud83d\udce2 &lt;strong&gt;On Social Network - Facebook&lt;\/strong&gt; you will have your post or picture where they will have a minimum of &lt;strong&gt;10K likes, 7K shares and 5K comments&lt;\/strong&gt;.&lt;\/p&gt;&lt;p&gt;\ud83d\udcb0 &lt;strong&gt;Price - $1000&lt;\/strong&gt;. Screenshots sent within 24 hours.&lt;\/p&gt;&lt;\/div&gt;&lt;div class=&quot;promo-card-right&quot;&gt;&lt;div class=&quot;gift-price&quot;&gt;$1000 GIFT&lt;\/div&gt;&lt;div class=&quot;gift-badges&quot;&gt;&lt;span class=&quot;gift-badge&quot;&gt;\ud83d\udd25 10K+ Likes&lt;\/span&gt;&lt;span class=&quot;gift-badge&quot;&gt;\ud83d\udd04 7K+ Shares&lt;\/span&gt;&lt;span class=&quot;gift-badge&quot;&gt;\ud83d\udcac 5K+ Comments&lt;\/span&gt;&lt;span class=&quot;gift-badge&quot;&gt;\ud83d\udcf8 Proof&lt;\/span&gt;&lt;\/div&gt;&lt;div style=&quot;background:#10b98120; padding:0.2rem 0.5rem; border-radius:40px; font-size:0.7rem;&quot;&gt;\u2713 24h Delivery&lt;\/div&gt;&lt;button class=&quot;btn-gift&quot; onclick=&quot;alert(&#039;\ud83c\udf81 GIFT CLAIMED! To qualify: Purchase $500+ products + $500+ Marketing Plan\/Decode Code within 1 year.&#039;)&quot;&gt;Claim My Gift&lt;\/button&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;div class=&quot;shipping-modern&quot;&gt;&lt;div class=&quot;shipping-left&quot;&gt;&lt;div class=&quot;shipping-icon&quot;&gt;&lt;i class=&quot;fas fa-truck-fast&quot;&gt;&lt;\/i&gt;&lt;\/div&gt;&lt;div class=&quot;shipping-text&quot;&gt;&lt;h3&gt;Shipping Information&lt;\/h3&gt;&lt;p&gt;Shipping cost calculated at checkout based on your location. Delivery within &lt;strong&gt;15 working days&lt;\/strong&gt; from order confirmation.&lt;\/p&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;shipping-badge&quot;&gt;&lt;i class=&quot;fas fa-globe&quot;&gt;&lt;\/i&gt; Worldwide Shipping&lt;\/div&gt;&lt;\/div&gt;\n&lt;div class=&quot;affiliate-modern&quot;&gt;&lt;div class=&quot;affiliate-header&quot;&gt;&lt;i class=&quot;fas fa-hand-holding-usd&quot;&gt;&lt;\/i&gt;&lt;h2&gt;\ud83d\udcb8 AFFILIATE PROGRAM \u2013 EARN 10% COMMISSION! \ud83d\udcb8&lt;\/h2&gt;&lt;\/div&gt;&lt;div class=&quot;affiliate-grid&quot;&gt;&lt;div class=&quot;affiliate-text&quot;&gt;&lt;p&gt;&lt;strong&gt;Become an Affiliate Partner!&lt;\/strong&gt;&lt;\/p&gt;&lt;p&gt;If the Buyer buys products totaling &lt;strong&gt;$500+&lt;\/strong&gt; in one year and buys Marketing Plan or Decode Code for &lt;strong&gt;$500+&lt;\/strong&gt;, you receive &lt;strong&gt;10% of the total amount&lt;\/strong&gt;.&lt;\/p&gt;&lt;ul&gt;&lt;li&gt;\u2705 Share your unique affiliate link&lt;\/li&gt;&lt;li&gt;\u2705 Earn 10% commission on qualifying purchases&lt;\/li&gt;&lt;li&gt;\u2705 Unlimited earnings, monthly payouts&lt;\/li&gt;&lt;\/ul&gt;&lt;p&gt;&lt;strong&gt;Example:&lt;\/strong&gt; $1000 total = $100 commission!&lt;\/p&gt;&lt;\/div&gt;&lt;div class=&quot;affiliate-card-right&quot;&gt;&lt;div class=&quot;commission-large&quot;&gt;10% Commission&lt;\/div&gt;&lt;div class=&quot;affiliate-stats&quot;&gt;&lt;span class=&quot;affiliate-stat&quot;&gt;\ud83d\udcb0 Unlimited&lt;\/span&gt;&lt;span class=&quot;affiliate-stat&quot;&gt;\ud83d\udcc8 Monthly&lt;\/span&gt;&lt;span class=&quot;affiliate-stat&quot;&gt;\ud83d\udd17 Unique Links&lt;\/span&gt;&lt;\/div&gt;&lt;div style=&quot;background:#ec4899; padding:0.2rem 0.5rem; border-radius:40px; font-size:0.7rem;&quot;&gt;\u2713 Join For Free&lt;\/div&gt;&lt;a href=&quot;https:\/\/marketplace-marketplace.com\/index.php\/affiliate\/&quot; target=&quot;_blank&quot; class=&quot;btn-affiliate-modern&quot;&gt;Join Affiliate Program Now&lt;\/a&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;div class=&quot;hero&quot;&gt;&lt;h1&gt;&lt;i class=&quot;fas fa-store&quot;&gt;&lt;\/i&gt; Shop by Niche&lt;\/h1&gt;&lt;p&gt;150+ categories \u00b7 7,500+ digital products \u00b7 5% marketplace fee&lt;\/p&gt;&lt;div class=&quot;stats-badge&quot;&gt;&lt;span class=&quot;stat-item&quot;&gt;&lt;i class=&quot;fas fa-store&quot;&gt;&lt;\/i&gt; &lt;span id=&quot;totalSellersSpan&quot;&gt;0&lt;\/span&gt; Stores&lt;\/span&gt;&lt;span class=&quot;stat-item&quot;&gt;&lt;i class=&quot;fas fa-box&quot;&gt;&lt;\/i&gt; &lt;span id=&quot;totalProductsSpan&quot;&gt;0&lt;\/span&gt; Products&lt;\/span&gt;&lt;span class=&quot;stat-item&quot;&gt;&lt;i class=&quot;fas fa-credit-card&quot;&gt;&lt;\/i&gt; 5 payment methods&lt;\/span&gt;&lt;span class=&quot;stat-item&quot;&gt;&lt;i class=&quot;fas fa-download&quot;&gt;&lt;\/i&gt; Digital Products&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;!-- Advanced Search --&gt;\n&lt;div class=&quot;advanced-search&quot;&gt;\n&lt;input type=&quot;text&quot; id=&quot;searchKeyword&quot; placeholder=&quot;\ud83d\udd0d Search by product title, brand, or seller...&quot;&gt;\n&lt;input type=&quot;number&quot; id=&quot;minPrice&quot; placeholder=&quot;Min price $&quot; step=&quot;1&quot;&gt;\n&lt;input type=&quot;number&quot; id=&quot;maxPrice&quot; placeholder=&quot;Max price $&quot; step=&quot;1&quot;&gt;\n&lt;select id=&quot;sortBy&quot;&gt;\n&lt;option value=&quot;default&quot;&gt;Sort by: Default&lt;\/option&gt;\n&lt;option value=&quot;price_asc&quot;&gt;Price: Low to High&lt;\/option&gt;\n&lt;option value=&quot;price_desc&quot;&gt;Price: High to Low&lt;\/option&gt;\n&lt;option value=&quot;newest&quot;&gt;Newest First&lt;\/option&gt;\n&lt;option value=&quot;discount_high&quot;&gt;Highest Discount&lt;\/option&gt;\n&lt;\/select&gt;\n&lt;button onclick=&quot;applyAdvancedSearch()&quot;&gt;Apply Filters&lt;\/button&gt;\n&lt;button onclick=&quot;resetSearch()&quot;&gt;Reset&lt;\/button&gt;\n&lt;\/div&gt;\n&lt;div class=&quot;search-bar&quot;&gt;&lt;input type=&quot;text&quot; id=&quot;searchNicheInput&quot; placeholder=&quot;\ud83d\udd0d Search for a niche, store name, product title, brand or seller...&quot; oninput=&quot;filterNicheGrid()&quot;&gt;&lt;\/div&gt;\n&lt;div class=&quot;niches-grid&quot; id=&quot;nichesGrid&quot;&gt;&lt;\/div&gt;\n&lt;div style=&quot;margin:1.5rem 0 0.5rem;&quot;&gt;&lt;h3&gt;&lt;i class=&quot;fas fa-fire&quot; style=&quot;color:#f59e0b;&quot;&gt;&lt;\/i&gt; Featured Products&lt;\/h3&gt;&lt;\/div&gt;\n&lt;div class=&quot;products-grid&quot; id=&quot;globalProductsGrid&quot;&gt;&lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;div id=&quot;sellersView&quot; class=&quot;view&quot;&gt;&lt;button class=&quot;btn-back&quot; onclick=&quot;showView(&#039;home&#039;)&quot;&gt;&lt;i class=&quot;fas fa-arrow-left&quot;&gt;&lt;\/i&gt; Home&lt;\/button&gt;&lt;div class=&quot;hero&quot; style=&quot;padding:1.5rem;&quot;&gt;&lt;h2&gt;&lt;i class=&quot;fas fa-store&quot;&gt;&lt;\/i&gt; All Stores&lt;\/h2&gt;&lt;p&gt;Every seller has a dedicated storefront with ratings, sales, and product catalog&lt;\/p&gt;&lt;\/div&gt;&lt;div class=&quot;search-bar&quot;&gt;&lt;input type=&quot;text&quot; id=&quot;searchSellerInput&quot; placeholder=&quot;\ud83d\udd0d Search store name or niche...&quot; oninput=&quot;filterSellersList()&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;niches-grid&quot; id=&quot;allSellersGrid&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;div id=&quot;cartView&quot; class=&quot;view&quot;&gt;&lt;button class=&quot;btn-back&quot; onclick=&quot;showView(&#039;home&#039;)&quot;&gt;&lt;i class=&quot;fas fa-arrow-left&quot;&gt;&lt;\/i&gt; Continue shopping&lt;\/button&gt;&lt;div class=&quot;hero&quot;&gt;&lt;h1&gt;Your Cart&lt;\/h1&gt;&lt;\/div&gt;&lt;div id=&quot;cartContainer&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;div id=&quot;nicheView&quot; class=&quot;view&quot;&gt;&lt;button class=&quot;btn-back&quot; onclick=&quot;showView(&#039;home&#039;)&quot;&gt;&lt;i class=&quot;fas fa-arrow-left&quot;&gt;&lt;\/i&gt; All niches&lt;\/button&gt;&lt;div id=&quot;nicheHeader&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;products-grid&quot; id=&quot;nicheProductsList&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;div id=&quot;sellerStoreView&quot; class=&quot;view&quot;&gt;&lt;button class=&quot;btn-back&quot; onclick=&quot;showView(&#039;sellers&#039;)&quot;&gt;&lt;i class=&quot;fas fa-store&quot;&gt;&lt;\/i&gt; Back to sellers&lt;\/button&gt;&lt;div id=&quot;sellerStoreContainer&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;\n\n&lt;div id=&quot;dashboardView&quot; class=&quot;view active&quot;&gt;\n&lt;div class=&quot;seller-hub&quot;&gt;&lt;h2&gt;&lt;i class=&quot;fas fa-chart-line&quot;&gt;&lt;\/i&gt; Seller Hub Pro&lt;\/h2&gt;&lt;p&gt;Manage your store, add physical or digital products \u2014 you earn 95%, we take 5% commission&lt;\/p&gt;&lt;\/div&gt;\n&lt;div class=&quot;dashboard-grid&quot;&gt;\n&lt;div&gt;&lt;div class=&quot;dashboard-card&quot;&gt;&lt;h3&gt;&lt;i class=&quot;fas fa-store&quot;&gt;&lt;\/i&gt; Register Your Store&lt;\/h3&gt;&lt;div class=&quot;free-notice&quot;&gt;&lt;div&gt;&lt;i class=&quot;fas fa-gift&quot; style=&quot;font-size:1.8rem; color:#10b981;&quot;&gt;&lt;\/i&gt;&lt;\/div&gt;&lt;div&gt;&lt;strong&gt;COMPLETELY FREE \u2013 NO HIDDEN COSTS!&lt;\/strong&gt;&lt;br&gt;Registration, store maintenance and placement of products is 100% FREE! You only pay 5% commission when you make a sale.&lt;\/div&gt;&lt;div&gt;&lt;span class=&quot;free-badge-large&quot;&gt;&lt;i class=&quot;fas fa-infinity&quot;&gt;&lt;\/i&gt; Forever Free&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Store Name&lt;\/label&gt;&lt;input type=&quot;text&quot; id=&quot;storeName&quot; placeholder=&quot;Your store name&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Owner Name&lt;\/label&gt;&lt;input type=&quot;text&quot; id=&quot;ownerName&quot; placeholder=&quot;Your full name&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Email&lt;\/label&gt;&lt;input type=&quot;email&quot; id=&quot;sellerEmail&quot; placeholder=&quot;your@email.com&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Select Your Niche&lt;\/label&gt;&lt;select id=&quot;sellerNicheSelect&quot;&gt;&lt;\/select&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Store Description&lt;\/label&gt;&lt;textarea id=&quot;storeDescription&quot; rows=&quot;2&quot; placeholder=&quot;Tell customers about your store...&quot;&gt;&lt;\/textarea&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;\ud83d\udccd Your Country&lt;\/label&gt;&lt;select id=&quot;sellerCountry&quot;&gt;&lt;option value=&quot;US&quot;&gt;United States&lt;\/option&gt;&lt;option value=&quot;UK&quot;&gt;United Kingdom&lt;\/option&gt;&lt;option value=&quot;CA&quot;&gt;Canada&lt;\/option&gt;&lt;option value=&quot;AU&quot;&gt;Australia&lt;\/option&gt;&lt;option value=&quot;DE&quot;&gt;Germany&lt;\/option&gt;&lt;option value=&quot;FR&quot;&gt;France&lt;\/option&gt;&lt;option value=&quot;IT&quot;&gt;Italy&lt;\/option&gt;&lt;option value=&quot;ES&quot;&gt;Spain&lt;\/option&gt;&lt;option value=&quot;JP&quot;&gt;Japan&lt;\/option&gt;&lt;option value=&quot;BR&quot;&gt;Brazil&lt;\/option&gt;&lt;option value=&quot;IN&quot;&gt;India&lt;\/option&gt;&lt;option value=&quot;CN&quot;&gt;China&lt;\/option&gt;&lt;option value=&quot;MX&quot;&gt;Mexico&lt;\/option&gt;&lt;option value=&quot;ZA&quot;&gt;South Africa&lt;\/option&gt;&lt;option value=&quot;NG&quot;&gt;Nigeria&lt;\/option&gt;&lt;option value=&quot;AE&quot;&gt;UAE&lt;\/option&gt;&lt;option value=&quot;SA&quot;&gt;Saudi Arabia&lt;\/option&gt;&lt;option value=&quot;TR&quot;&gt;Turkey&lt;\/option&gt;&lt;option value=&quot;RU&quot;&gt;Russia&lt;\/option&gt;&lt;option value=&quot;KR&quot;&gt;South Korea&lt;\/option&gt;&lt;option value=&quot;WORLD&quot;&gt;\ud83c\udf0d Other Country - World&lt;\/option&gt;&lt;\/select&gt;&lt;\/div&gt;&lt;button class=&quot;btn-primary-action&quot; onclick=&quot;registerStore()&quot;&gt;\ud83d\ude80 Register Store (Free)&lt;\/button&gt;&lt;\/div&gt;&lt;div class=&quot;dashboard-card&quot;&gt;&lt;h3&gt;&lt;i class=&quot;fas fa-chart-line&quot;&gt;&lt;\/i&gt; Store Performance&lt;\/h3&gt;&lt;div class=&quot;stats-grid&quot;&gt;&lt;div class=&quot;stat-card&quot;&gt;&lt;div class=&quot;stat-number&quot; id=&quot;statProducts&quot;&gt;0&lt;\/div&gt;&lt;div&gt;Products&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;stat-card&quot;&gt;&lt;div class=&quot;stat-number&quot; id=&quot;statSales&quot;&gt;0&lt;\/div&gt;&lt;div&gt;Total Sales&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;stat-card&quot;&gt;&lt;div class=&quot;stat-number&quot; id=&quot;statEarnings&quot;&gt;$0&lt;\/div&gt;&lt;div&gt;Earnings&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;stat-card&quot;&gt;&lt;div class=&quot;stat-number&quot; id=&quot;statCommission&quot;&gt;$0&lt;\/div&gt;&lt;div&gt;Platform Fee&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;div&gt;&lt;div class=&quot;dashboard-card&quot;&gt;&lt;h3&gt;&lt;i class=&quot;fas fa-plus-circle&quot;&gt;&lt;\/i&gt; Add New Product&lt;\/h3&gt;&lt;div class=&quot;dropzone&quot; id=&quot;productDropZone&quot;&gt;&lt;i class=&quot;fas fa-cloud-upload-alt fa-2x&quot;&gt;&lt;\/i&gt;&lt;div&gt;Drag &amp; drop images or click&lt;\/div&gt;&lt;button type=&quot;button&quot; id=&quot;browseBtn&quot; class=&quot;btn-small&quot;&gt;Browse Files&lt;\/button&gt;&lt;input type=&quot;file&quot; id=&quot;productFileInput&quot; multiple accept=&quot;image\/*&quot; style=&quot;display:none;&quot;&gt;&lt;\/div&gt;&lt;div id=&quot;imagePreviewContainer&quot; class=&quot;image-preview&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Product Title&lt;\/label&gt;&lt;input id=&quot;prodTitle&quot; placeholder=&quot;Product name&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Description&lt;\/label&gt;&lt;textarea id=&quot;prodDesc&quot; rows=&quot;2&quot; placeholder=&quot;Product description&quot;&gt;&lt;\/textarea&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;\ud83d\udce6 Product Type&lt;\/label&gt;&lt;select id=&quot;productType&quot; onchange=&quot;toggleProductTypeFields()&quot;&gt;&lt;option value=&quot;physical&quot;&gt;\ud83d\udce6 Physical Product (shipping required)&lt;\/option&gt;&lt;option value=&quot;digital&quot;&gt;\ud83d\udcbb Digital Product (instant download, no shipping)&lt;\/option&gt;&lt;\/select&gt;&lt;\/div&gt;\n&lt;div id=&quot;digitalFields&quot; class=&quot;digital-fields&quot;&gt;&lt;h4&gt;\ud83d\udcbe Digital Product Details&lt;\/h4&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Download Link&lt;\/label&gt;&lt;input type=&quot;url&quot; id=&quot;downloadLink&quot; placeholder=&quot;https:\/\/...&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;License Keys&lt;\/label&gt;&lt;textarea id=&quot;licenseKeys&quot; rows=&quot;2&quot; placeholder=&quot;KEY-XXXX-YYYY-ZZZZ&quot;&gt;&lt;\/textarea&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;File Size&lt;\/label&gt;&lt;input type=&quot;text&quot; id=&quot;fileSize&quot; placeholder=&quot;e.g., 25 MB&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;div id=&quot;physicalShippingFields&quot; class=&quot;shipping-rules&quot;&gt;&lt;h4&gt;&lt;i class=&quot;fas fa-truck&quot;&gt;&lt;\/i&gt; Shipping Options (Physical Products Only)&lt;\/h4&gt;&lt;div class=&quot;shipping-option-row&quot;&gt;&lt;label&gt;&lt;input type=&quot;checkbox&quot; id=&quot;freeShippingWorldwide&quot; onchange=&quot;toggleFreeShipping()&quot;&gt; &lt;strong&gt;Free Shipping Worldwide&lt;\/strong&gt;&lt;\/label&gt;&lt;\/div&gt;&lt;div id=&quot;customShippingSection&quot;&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Default Shipping Price ($)&lt;\/label&gt;&lt;input type=&quot;number&quot; id=&quot;defaultShippingPrice&quot; step=&quot;0.01&quot; value=&quot;5.99&quot;&gt;&lt;\/div&gt;&lt;div&gt;&lt;label&gt;Country-Specific Prices ($):&lt;\/label&gt;&lt;\/div&gt;&lt;div id=&quot;shippingRulesList&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;shipping-rule-row&quot;&gt;&lt;select id=&quot;newRuleCountry&quot;&gt;&lt;option value=&quot;US&quot;&gt;US&lt;\/option&gt;&lt;option value=&quot;CA&quot;&gt;Canada&lt;\/option&gt;&lt;option value=&quot;UK&quot;&gt;UK&lt;\/option&gt;&lt;option value=&quot;WORLD&quot;&gt;\ud83c\udf0d World&lt;\/option&gt;&lt;\/select&gt;&lt;input type=&quot;number&quot; id=&quot;newRulePrice&quot; step=&quot;0.01&quot; value=&quot;0.30&quot; style=&quot;width:80px;&quot; placeholder=&quot;$&quot;&gt;&lt;button class=&quot;btn-small&quot; onclick=&quot;addShippingRule()&quot;&gt;+ Add&lt;\/button&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;\ud83d\udccb Product Condition&lt;\/label&gt;&lt;select id=&quot;productCondition&quot;&gt;&lt;option value=&quot;New&quot;&gt;\ud83d\udfe2 New&lt;\/option&gt;&lt;option value=&quot;Like New&quot;&gt;\ud83d\udfe2 Like New&lt;\/option&gt;&lt;option value=&quot;Used - Good&quot;&gt;\ud83d\udfe1 Used - Good&lt;\/option&gt;&lt;option value=&quot;Used - Fair&quot;&gt;\ud83d\udfe0 Used - Fair&lt;\/option&gt;&lt;option value=&quot;Refurbished&quot;&gt;\ud83d\udd35 Refurbished&lt;\/option&gt;&lt;\/select&gt;&lt;\/div&gt;\n&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;\ud83d\udccf Product Specifications&lt;\/label&gt;&lt;textarea id=&quot;productSpecs&quot; rows=&quot;3&quot; placeholder=&quot;Dimensions, weight, material, color, warranty...&quot;&gt;&lt;\/textarea&gt;&lt;\/div&gt;\n&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;\ud83d\udd22 SKU (Stock Keeping Unit)&lt;\/label&gt;&lt;input type=&quot;text&quot; id=&quot;productSku&quot; placeholder=&quot;SKU-12345-ABCDE&quot;&gt;&lt;\/div&gt;\n&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;\ud83d\udcb0 Price ($)&lt;\/label&gt;&lt;input type=&quot;number&quot; id=&quot;prodPrice&quot; step=&quot;0.01&quot; placeholder=&quot;0.00&quot;&gt;&lt;\/div&gt;\n&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;\ud83d\udce6 Stock&lt;\/label&gt;&lt;input type=&quot;number&quot; id=&quot;prodStock&quot; value=&quot;1&quot; min=&quot;1&quot;&gt;&lt;\/div&gt;\n&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;\ud83c\udff7\ufe0f Discount (%)&lt;\/label&gt;&lt;input type=&quot;number&quot; id=&quot;productDiscount&quot; step=&quot;1&quot; min=&quot;0&quot; max=&quot;90&quot; value=&quot;0&quot; placeholder=&quot;0-90%&quot;&gt;&lt;\/div&gt;\n&lt;button class=&quot;btn-primary-action&quot; onclick=&quot;publishProduct()&quot; style=&quot;margin-top:1rem;&quot;&gt;\ud83d\udce2 Publish Product&lt;\/button&gt;&lt;\/div&gt;\n&lt;div class=&quot;dashboard-card&quot;&gt;&lt;h3&gt;&lt;i class=&quot;fas fa-box&quot;&gt;&lt;\/i&gt; My Products&lt;\/h3&gt;&lt;div id=&quot;myProductsList&quot; class=&quot;products-list&quot;&gt;&lt;p style=&quot;color:#94a3b8; text-align:center;&quot;&gt;No products yet. Add your first product.&lt;\/p&gt;&lt;\/div&gt;&lt;div id=&quot;productCountMessage&quot; style=&quot;margin-top:0.8rem; font-size:0.75rem; text-align:center;&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;div class=&quot;benefit-card ads&quot;&gt;&lt;div class=&quot;benefit-header&quot;&gt;&lt;div class=&quot;benefit-title&quot;&gt;&lt;i class=&quot;fas fa-ad&quot;&gt;&lt;\/i&gt; \ud83d\ude80 Marketplace Ads Pro&lt;\/div&gt;&lt;div class=&quot;benefit-value&quot;&gt;Free $100 Value&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;benefit-desc&quot;&gt;&lt;strong&gt;Sponsored Post - $100 value - FREE for eligible stores!&lt;\/strong&gt;&lt;br&gt;A sponsored post for &lt;strong&gt;10 days&lt;\/strong&gt; for stores with minimum 20 products.&lt;\/div&gt;&lt;button class=&quot;btn-gold&quot; onclick=&quot;claimSponsoredPost()&quot;&gt;\ud83c\udfaf Claim Free Sponsored Post ($100)&lt;\/button&gt;&lt;div id=&quot;sponsoredEligibilityMsg&quot; class=&quot;eligibility-msg&quot;&gt;&lt;i class=&quot;fas fa-exclamation-triangle&quot;&gt;&lt;\/i&gt; \u26a0\ufe0f Need 20 more products to unlock FREE sponsored post ($100 value)&lt;\/div&gt;&lt;\/div&gt;\n&lt;div class=&quot;benefit-card radio&quot;&gt;&lt;div class=&quot;benefit-header&quot;&gt;&lt;div class=&quot;benefit-title&quot;&gt;&lt;i class=&quot;fas fa-radio&quot;&gt;&lt;\/i&gt; \ud83d\udcfb Marketplace Internet Radio&lt;\/div&gt;&lt;div class=&quot;benefit-value radio&quot;&gt;Free $50 Value&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;benefit-desc&quot;&gt;&lt;strong&gt;Free Radio Advertisement - $50 value!&lt;\/strong&gt;&lt;br&gt;Free advertisement for &lt;strong&gt;one month&lt;\/strong&gt; for stores with minimum 20 products.&lt;\/div&gt;&lt;button class=&quot;btn-gold btn-blue&quot; onclick=&quot;claimRadioAd()&quot;&gt;\ud83d\udce2 Claim Free Radio Ad ($50)&lt;\/button&gt;&lt;div id=&quot;radioEligibilityMsg&quot; class=&quot;eligibility-msg&quot;&gt;&lt;i class=&quot;fas fa-exclamation-triangle&quot;&gt;&lt;\/i&gt; \u26a0\ufe0f Need 20 more products to unlock FREE radio ad ($50 value)&lt;\/div&gt;&lt;\/div&gt;\n&lt;div class=&quot;benefit-card website&quot;&gt;&lt;div class=&quot;benefit-header&quot;&gt;&lt;div class=&quot;benefit-title&quot;&gt;&lt;i class=&quot;fas fa-globe&quot;&gt;&lt;\/i&gt; \ud83c\udf81 Free Website for Your Business!&lt;\/div&gt;&lt;div class=&quot;benefit-value website&quot;&gt;$1000 Value&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;benefit-desc&quot;&gt;&lt;strong&gt;Marketplace Platform will create a professional website for your business completely FREE!&lt;\/strong&gt;&lt;\/div&gt;&lt;ul class=&quot;benefit-list&quot;&gt;&lt;li&gt;\u2705 Professional website design&lt;\/li&gt;&lt;li&gt;\u2705 Product catalog integration&lt;\/li&gt;&lt;li&gt;\u2705 Secure payment gateway&lt;\/li&gt;&lt;li&gt;\u2705 Mobile-responsive design&lt;\/li&gt;&lt;\/ul&gt;&lt;div class=&quot;price-tag&quot;&gt;$50\/month&lt;\/div&gt;&lt;div style=&quot;font-size:0.7rem; color:#b45309;&quot;&gt;Domain + Hosting fee&lt;\/div&gt;&lt;button class=&quot;btn-gold btn-green&quot; onclick=&quot;requestFreeWebsite()&quot;&gt;\ud83c\udf81 Request Free Website ($1000 value)&lt;\/button&gt;&lt;div id=&quot;websiteEligibilityMsg&quot; class=&quot;eligibility-msg&quot;&gt;&lt;i class=&quot;fas fa-exclamation-triangle&quot;&gt;&lt;\/i&gt; \u26a0\ufe0f Need 20 more products to unlock FREE website ($1000 value)&lt;\/div&gt;&lt;\/div&gt;\n&lt;div class=&quot;dashboard-card&quot;&gt;&lt;h3&gt;&lt;i class=&quot;fas fa-truck&quot;&gt;&lt;\/i&gt; \ud83d\udce6 Incoming Orders&lt;\/h3&gt;&lt;div id=&quot;sellerOrdersList&quot; style=&quot;max-height:400px; overflow-y:auto;&quot;&gt;&lt;p style=&quot;text-align:center; color:#94a3b8;&quot;&gt;No orders yet.&lt;\/p&gt;&lt;\/div&gt;&lt;\/div&gt;\n&lt;\/div&gt;\n&lt;\/div&gt;\n&lt;\/div&gt;\n&lt;\/div&gt;\n\n&lt;div id=&quot;checkoutModal&quot; class=&quot;checkout-modal&quot;&gt;&lt;div class=&quot;checkout-container&quot;&gt;&lt;div class=&quot;checkout-header&quot;&gt;&lt;h2&gt;&lt;i class=&quot;fas fa-lock&quot;&gt;&lt;\/i&gt; Demo Payment Portal &lt;span style=&quot;font-size:0.7rem; font-weight:700; background:rgba(255,255,255,0.18); padding:0.25rem 0.6rem; border-radius:999px; margin-left:0.5rem;&quot;&gt;DEMO&lt;\/span&gt;&lt;\/h2&gt;&lt;button class=&quot;close-checkout&quot; onclick=&quot;closeCheckoutModal()&quot;&gt;&lt;i class=&quot;fas fa-times&quot;&gt;&lt;\/i&gt;&lt;\/button&gt;&lt;\/div&gt;&lt;div class=&quot;checkout-body&quot;&gt;&lt;div&gt;&lt;div class=&quot;form-section&quot;&gt;&lt;h3&gt;&lt;i class=&quot;fas fa-map-marker-alt&quot;&gt;&lt;\/i&gt; Shipping Address&lt;\/h3&gt;&lt;div class=&quot;form-row&quot;&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Full Name&lt;\/label&gt;&lt;input id=&quot;fullName&quot; placeholder=&quot;Full name&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Phone&lt;\/label&gt;&lt;input id=&quot;phoneNumber&quot; placeholder=&quot;Phone&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Street Address&lt;\/label&gt;&lt;input id=&quot;streetAddress&quot; placeholder=&quot;Street address&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Apartment&lt;\/label&gt;&lt;input id=&quot;apartment&quot; placeholder=&quot;Apt, suite&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-row&quot;&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;City&lt;\/label&gt;&lt;input id=&quot;city&quot; placeholder=&quot;City&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;State&lt;\/label&gt;&lt;input id=&quot;state&quot; placeholder=&quot;State&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;form-row&quot;&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;ZIP&lt;\/label&gt;&lt;input id=&quot;zipCode&quot; placeholder=&quot;ZIP&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Country&lt;\/label&gt;&lt;select id=&quot;countrySelect&quot;&gt;&lt;option value=&quot;US&quot;&gt;US&lt;\/option&gt;&lt;option value=&quot;UK&quot;&gt;UK&lt;\/option&gt;&lt;option value=&quot;CA&quot;&gt;Canada&lt;\/option&gt;&lt;option value=&quot;DE&quot;&gt;Germany&lt;\/option&gt;&lt;option value=&quot;FR&quot;&gt;France&lt;\/option&gt;&lt;option value=&quot;WORLD&quot;&gt;\ud83c\udf0d Other Country - World&lt;\/option&gt;&lt;\/select&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;form-group&quot;&gt;&lt;label&gt;Email&lt;\/label&gt;&lt;input id=&quot;emailAddress&quot; placeholder=&quot;Email&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;form-section&quot;&gt;&lt;h3&gt;&lt;i class=&quot;fas fa-credit-card&quot;&gt;&lt;\/i&gt; Payment Method&lt;\/h3&gt;&lt;div class=&quot;payment-methods-grid&quot;&gt;&lt;div class=&quot;payment-method-card&quot; data-method=&quot;bank&quot;&gt;&lt;div class=&quot;payment-icon&quot;&gt;&lt;i class=&quot;fas fa-university&quot;&gt;&lt;\/i&gt;&lt;\/div&gt;&lt;div class=&quot;payment-name&quot;&gt;Bank Transfer&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;payment-method-card&quot; data-method=&quot;payoneer&quot;&gt;&lt;div class=&quot;payment-icon&quot;&gt;&lt;i class=&quot;fas fa-globe&quot;&gt;&lt;\/i&gt;&lt;\/div&gt;&lt;div class=&quot;payment-name&quot;&gt;Payoneer&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;payment-method-card&quot; data-method=&quot;crypto&quot;&gt;&lt;div class=&quot;payment-icon&quot;&gt;&lt;i class=&quot;fab fa-bitcoin&quot;&gt;&lt;\/i&gt;&lt;\/div&gt;&lt;div class=&quot;payment-name&quot;&gt;Crypto&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;payment-method-card&quot; data-method=&quot;visa&quot;&gt;&lt;div class=&quot;payment-icon&quot;&gt;&lt;i class=&quot;fab fa-cc-visa&quot;&gt;&lt;\/i&gt;&lt;\/div&gt;&lt;div class=&quot;payment-name&quot;&gt;Visa&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;payment-method-card&quot; data-method=&quot;mastercard&quot;&gt;&lt;div class=&quot;payment-icon&quot;&gt;&lt;i class=&quot;fab fa-cc-mastercard&quot;&gt;&lt;\/i&gt;&lt;\/div&gt;&lt;div class=&quot;payment-name&quot;&gt;MasterCard&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div id=&quot;bankDetails&quot; class=&quot;payment-details&quot;&gt;&lt;i class=&quot;fas fa-building&quot;&gt;&lt;\/i&gt; Bank: Marketplace Bank&lt;br&gt;Account: 482919382938&lt;\/div&gt;&lt;div id=&quot;payoneerDetails&quot; class=&quot;payment-details&quot;&gt;&lt;i class=&quot;fas fa-globe&quot;&gt;&lt;\/i&gt; Email: payments@marketplace.com&lt;\/div&gt;&lt;div id=&quot;cryptoDetails&quot; class=&quot;payment-details&quot;&gt;&lt;i class=&quot;fab fa-bitcoin&quot;&gt;&lt;\/i&gt; BTC: 1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa&lt;\/div&gt;&lt;div id=&quot;cardDetails&quot; class=&quot;payment-details&quot;&gt;&lt;input class=&quot;form-group&quot; id=&quot;cardNumber&quot; placeholder=&quot;Card Number&quot;&gt;&lt;div class=&quot;form-row&quot;&gt;&lt;input id=&quot;cardExpiry&quot; placeholder=&quot;MM\/YY&quot;&gt;&lt;input id=&quot;cardCvv&quot; placeholder=&quot;CVV&quot;&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;order-summary&quot;&gt;&lt;h3&gt;Order Summary&lt;\/h3&gt;&lt;div id=&quot;checkoutCartItems&quot;&gt;&lt;\/div&gt;&lt;div class=&quot;totals-row&quot;&gt;&lt;span&gt;Subtotal:&lt;\/span&gt;&lt;span id=&quot;checkoutSubtotal&quot;&gt;$0.00&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;totals-row&quot;&gt;&lt;span&gt;Shipping:&lt;\/span&gt;&lt;span id=&quot;checkoutShipping&quot;&gt;$0.00&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;totals-row&quot;&gt;&lt;span&gt;Commission (5%):&lt;\/span&gt;&lt;span id=&quot;checkoutFee&quot;&gt;$0.00&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;totals-row total&quot;&gt;&lt;span&gt;Total to pay:&lt;\/span&gt;&lt;span id=&quot;checkoutTotal&quot;&gt;$0.00&lt;\/span&gt;&lt;\/div&gt;&lt;button class=&quot;place-order-btn&quot; onclick=&quot;processSecurePayment()&quot;&gt;Place Demo Order &amp; Pay&lt;\/button&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;\n\n&lt;script&gt;\nconst prohibitedTerms = [&#039;violence&#039;, &#039;hate&#039;, &#039;racism&#039;, &#039;racist&#039;, &#039;anti-semitic&#039;, &#039;anti semitic&#039;, &#039;jew hate&#039;, &#039;drugs&#039;, &#039;drug&#039;, &#039;cocaine&#039;, &#039;heroin&#039;, &#039;meth&#039;, &#039;pedophilia&#039;, &#039;pedophile&#039;, &#039;anti-lgbt&#039;, &#039;anti lgbt&#039;, &#039;lgbt hate&#039;, &#039;nazi&#039;, &#039;hitler&#039;, &#039;kkk&#039;, &#039;white power&#039;, &#039;black power hate&#039;];\nfunction moderateContent(text) {\nconst lowerText = text.toLowerCase();\nfor (let term of prohibitedTerms) {\nif (lowerText.includes(term)) {\nreturn { approved: false, reason: `Content contains prohibited term: ${term}` };\n}\n}\nreturn { approved: true, reason: &#039;&#039; };\n}\nconst marketplaceStoreName = &quot;Marketplace Platform - Buy and Sell Products&quot;;\nconst marketplaceOwner = &quot;Marketplace Platform&quot;;\nconst marketplaceEmail = &quot;support@marketplace-platform.com&quot;;\n\nconst allNiches = [&quot;Airline&quot;,&quot;Alcohol&quot;,&quot;Antivirus&quot;,&quot;Art&quot;,&quot;Automotive&quot;,&quot;Baby Products&quot;,&quot;Banking&quot;,&quot;Beauty&quot;,&quot;Beer&quot;,&quot;Beginner&quot;,&quot;Bicycle&quot;,&quot;Binary Options&quot;,&quot;Blogger&quot;,&quot;Book&quot;,&quot;Boutique&quot;,&quot;Budgeting&quot;,&quot;Business&quot;,&quot;Camping&quot;,&quot;Candle&quot;,&quot;Casino&quot;,&quot;Cat&quot;,&quot;CBD&quot;,&quot;Cell Phone&quot;,&quot;Charity&quot;,&quot;Christian&quot;,&quot;Cleaning&quot;,&quot;Coffee&quot;,&quot;Cooking&quot;,&quot;Course&quot;,&quot;Crafts&quot;,&quot;Credit Card&quot;,&quot;Credit Repair&quot;,&quot;Cruise&quot;,&quot;Crypto&quot;,&quot;CRM&quot;,&quot;Daily Paying&quot;,&quot;Dental&quot;,&quot;Dating&quot;,&quot;Debt Settlement&quot;,&quot;Diabetes&quot;,&quot;Dog&quot;,&quot;Drink&quot;,&quot;Drone&quot;,&quot;E-commerce&quot;,&quot;Email marketing&quot;,&quot;Education&quot;,&quot;Electronics&quot;,&quot;Entertainment&quot;,&quot;Essential Oils&quot;,&quot;Eyewear&quot;,&quot;Fashion&quot;,&quot;Financial&quot;,&quot;Fishing&quot;,&quot;Fitness&quot;,&quot;Food&quot;,&quot;Forex&quot;,&quot;Fragrance&quot;,&quot;Freight&quot;,&quot;Gaming&quot;,&quot;Gardening&quot;,&quot;Gift&quot;,&quot;Gift Basket&quot;,&quot;Gluten Free&quot;,&quot;Gold and Silver&quot;,&quot;Golf&quot;,&quot;Graphic Design&quot;,&quot;Hair Care&quot;,&quot;Health and Wellness&quot;,&quot;Help Desk&quot;,&quot;Herbal&quot;,&quot;High Paying&quot;,&quot;Home Improvement&quot;,&quot;Home Decor&quot;,&quot;Home Security&quot;,&quot;Homeschool&quot;,&quot;Hotel&quot;,&quot;Hunting&quot;,&quot;Hygiene&quot;,&quot;Influencer&quot;,&quot;Insurance&quot;,&quot;Investing&quot;,&quot;Identity Protection&quot;,&quot;Internet Marketing&quot;,&quot;Jewelry&quot;,&quot;Job&quot;,&quot;Keto&quot;,&quot;Language&quot;,&quot;Legal&quot;,&quot;Luxury&quot;,&quot;Loan&quot;,&quot;Luggage&quot;,&quot;Makeup&quot;,&quot;Mattress&quot;,&quot;Medical&quot;,&quot;Meditation&quot;,&quot;Metaphysical&quot;,&quot;Mobile App&quot;,&quot;Mortgage&quot;,&quot;Mountain&quot;,&quot;Music&quot;,&quot;Nail Care&quot;,&quot;Nutrition&quot;,&quot;Organic Products&quot;,&quot;Paleo&quot;,&quot;Pay Per Call&quot;,&quot;Pay Per Click&quot;,&quot;Pet Niche&quot;,&quot;Pharmacy&quot;,&quot;Photography&quot;,&quot;Podcast&quot;,&quot;Pregnancy&quot;,&quot;Productivity&quot;,&quot;Psychic&quot;,&quot;Personal Development&quot;,&quot;Real Estate&quot;,&quot;Recurring&quot;,&quot;Restaurant&quot;,&quot;SaaS&quot;,&quot;SEO&quot;,&quot;Self Defense&quot;,&quot;Shaving&quot;,&quot;Shoes&quot;,&quot;Skincare&quot;,&quot;Sleep&quot;,&quot;Small Business&quot;,&quot;Software&quot;,&quot;Solar&quot;,&quot;Sports&quot;,&quot;Sports Betting&quot;,&quot;Supplements&quot;,&quot;Survival&quot;,&quot;T-shirt&quot;,&quot;Tax Preparation&quot;,&quot;Tea&quot;,&quot;Tech&quot;,&quot;Toy&quot;,&quot;Travel&quot;,&quot;Vape&quot;,&quot;Vegan&quot;,&quot;Video&quot;,&quot;VPN&quot;,&quot;Watch&quot;,&quot;Web Hosting&quot;,&quot;Wedding&quot;,&quot;Weight Loss&quot;,&quot;Wine&quot;,&quot;Women&#039;s Health&quot;,&quot;WordPress&quot;,&quot;Writing&quot;,&quot;Yoga&quot;];\nconst nicheIcons = {\n&quot;Airline&quot;:&quot;fas fa-plane&quot;,&quot;Alcohol&quot;:&quot;fas fa-wine-glass-alt&quot;,&quot;Antivirus&quot;:&quot;fas fa-shield-virus&quot;,&quot;Art&quot;:&quot;fas fa-palette&quot;,&quot;Automotive&quot;:&quot;fas fa-car&quot;,&quot;Baby Products&quot;:&quot;fas fa-baby&quot;,&quot;Banking&quot;:&quot;fas fa-university&quot;,&quot;Beauty&quot;:&quot;fas fa-spa&quot;,&quot;Beer&quot;:&quot;fas fa-beer&quot;,&quot;Beginner&quot;:&quot;fas fa-rocket&quot;,&quot;Bicycle&quot;:&quot;fas fa-bicycle&quot;,&quot;Binary Options&quot;:&quot;fas fa-chart-line&quot;,&quot;Blogger&quot;:&quot;fas fa-blog&quot;,&quot;Book&quot;:&quot;fas fa-book&quot;,&quot;Boutique&quot;:&quot;fas fa-store&quot;,&quot;Budgeting&quot;:&quot;fas fa-calculator&quot;,&quot;Business&quot;:&quot;fas fa-briefcase&quot;,&quot;Camping&quot;:&quot;fas fa-campground&quot;,&quot;Candle&quot;:&quot;fas fa-fire&quot;,&quot;Casino&quot;:&quot;fas fa-dice&quot;,&quot;Cat&quot;:&quot;fas fa-cat&quot;,&quot;CBD&quot;:&quot;fas fa-leaf&quot;,&quot;Cell Phone&quot;:&quot;fas fa-mobile-alt&quot;,&quot;Charity&quot;:&quot;fas fa-hands-helping&quot;,&quot;Christian&quot;:&quot;fas fa-church&quot;,&quot;Cleaning&quot;:&quot;fas fa-broom&quot;,&quot;Coffee&quot;:&quot;fas fa-coffee&quot;,&quot;Cooking&quot;:&quot;fas fa-utensils&quot;,&quot;Course&quot;:&quot;fas fa-graduation-cap&quot;,&quot;Crafts&quot;:&quot;fas fa-paint-brush&quot;,&quot;Credit Card&quot;:&quot;fas fa-credit-card&quot;,&quot;Credit Repair&quot;:&quot;fas fa-wrench&quot;,&quot;Cruise&quot;:&quot;fas fa-ship&quot;,&quot;Crypto&quot;:&quot;fab fa-bitcoin&quot;,&quot;CRM&quot;:&quot;fas fa-headset&quot;,&quot;Daily Paying&quot;:&quot;fas fa-calendar-day&quot;,&quot;Dental&quot;:&quot;fas fa-tooth&quot;,&quot;Dating&quot;:&quot;fas fa-heart&quot;,&quot;Debt Settlement&quot;:&quot;fas fa-balance-scale&quot;,&quot;Diabetes&quot;:&quot;fas fa-heartbeat&quot;,&quot;Dog&quot;:&quot;fas fa-dog&quot;,&quot;Drink&quot;:&quot;fas fa-glass-whiskey&quot;,&quot;Drone&quot;:&quot;fas fa-drone&quot;,&quot;E-commerce&quot;:&quot;fas fa-shopping-cart&quot;,&quot;Email marketing&quot;:&quot;fas fa-envelope&quot;,&quot;Education&quot;:&quot;fas fa-graduation-cap&quot;,&quot;Electronics&quot;:&quot;fas fa-microchip&quot;,&quot;Entertainment&quot;:&quot;fas fa-film&quot;,&quot;Essential Oils&quot;:&quot;fas fa-flask&quot;,&quot;Eyewear&quot;:&quot;fas fa-glasses&quot;,&quot;Fashion&quot;:&quot;fas fa-tshirt&quot;,&quot;Financial&quot;:&quot;fas fa-chart-pie&quot;,&quot;Fishing&quot;:&quot;fas fa-fish&quot;,&quot;Fitness&quot;:&quot;fas fa-dumbbell&quot;,&quot;Food&quot;:&quot;fas fa-hamburger&quot;,&quot;Forex&quot;:&quot;fas fa-money-bill-wave&quot;,&quot;Fragrance&quot;:&quot;fas fa-wind&quot;,&quot;Freight&quot;:&quot;fas fa-truck&quot;,&quot;Gaming&quot;:&quot;fas fa-gamepad&quot;,&quot;Gardening&quot;:&quot;fas fa-seedling&quot;,&quot;Gift&quot;:&quot;fas fa-gift&quot;,&quot;Gift Basket&quot;:&quot;fas fa-gifts&quot;,&quot;Gluten Free&quot;:&quot;fas fa-bread-slice&quot;,&quot;Gold and Silver&quot;:&quot;fas fa-gem&quot;,&quot;Golf&quot;:&quot;fas fa-golf-ball&quot;,&quot;Graphic Design&quot;:&quot;fas fa-paintbrush&quot;,&quot;Hair Care&quot;:&quot;fas fa-cut&quot;,&quot;Health and Wellness&quot;:&quot;fas fa-heartbeat&quot;,&quot;Help Desk&quot;:&quot;fas fa-headset&quot;,&quot;Herbal&quot;:&quot;fas fa-leaf&quot;,&quot;High Paying&quot;:&quot;fas fa-chart-line&quot;,&quot;Home Improvement&quot;:&quot;fas fa-hammer&quot;,&quot;Home Decor&quot;:&quot;fas fa-couch&quot;,&quot;Home Security&quot;:&quot;fas fa-shield-alt&quot;,&quot;Homeschool&quot;:&quot;fas fa-chalkboard&quot;,&quot;Hotel&quot;:&quot;fas fa-hotel&quot;,&quot;Hunting&quot;:&quot;fas fa-bullseye&quot;,&quot;Hygiene&quot;:&quot;fas fa-soap&quot;,&quot;Influencer&quot;:&quot;fas fa-star&quot;,&quot;Insurance&quot;:&quot;fas fa-shield-alt&quot;,&quot;Investing&quot;:&quot;fas fa-chart-line&quot;,&quot;Identity Protection&quot;:&quot;fas fa-id-card&quot;,&quot;Internet Marketing&quot;:&quot;fas fa-globe&quot;,&quot;Jewelry&quot;:&quot;fas fa-gem&quot;,&quot;Job&quot;:&quot;fas fa-briefcase&quot;,&quot;Keto&quot;:&quot;fas fa-bacon&quot;,&quot;Language&quot;:&quot;fas fa-language&quot;,&quot;Legal&quot;:&quot;fas fa-gavel&quot;,&quot;Luxury&quot;:&quot;fas fa-crown&quot;,&quot;Loan&quot;:&quot;fas fa-hand-holding-usd&quot;,&quot;Luggage&quot;:&quot;fas fa-suitcase&quot;,&quot;Makeup&quot;:&quot;fas fa-eye-shadow&quot;,&quot;Mattress&quot;:&quot;fas fa-bed&quot;,&quot;Medical&quot;:&quot;fas fa-hospital&quot;,&quot;Meditation&quot;:&quot;fas fa-spa&quot;,&quot;Metaphysical&quot;:&quot;fas fa-crystal-ball&quot;,&quot;Mobile App&quot;:&quot;fas fa-mobile-alt&quot;,&quot;Mortgage&quot;:&quot;fas fa-home&quot;,&quot;Mountain&quot;:&quot;fas fa-mountain&quot;,&quot;Music&quot;:&quot;fas fa-music&quot;,&quot;Nail Care&quot;:&quot;fas fa-hand-sparkles&quot;,&quot;Nutrition&quot;:&quot;fas fa-apple-alt&quot;,&quot;Organic Products&quot;:&quot;fas fa-leaf&quot;,&quot;Paleo&quot;:&quot;fas fa-drumstick-bite&quot;,&quot;Pay Per Call&quot;:&quot;fas fa-phone-alt&quot;,&quot;Pay Per Click&quot;:&quot;fas fa-mouse-pointer&quot;,&quot;Pet Niche&quot;:&quot;fas fa-paw&quot;,&quot;Pharmacy&quot;:&quot;fas fa-pills&quot;,&quot;Photography&quot;:&quot;fas fa-camera&quot;,&quot;Podcast&quot;:&quot;fas fa-podcast&quot;,&quot;Pregnancy&quot;:&quot;fas fa-baby-carriage&quot;,&quot;Productivity&quot;:&quot;fas fa-tasks&quot;,&quot;Psychic&quot;:&quot;fas fa-crystal-ball&quot;,&quot;Personal Development&quot;:&quot;fas fa-user-graduate&quot;,&quot;Real Estate&quot;:&quot;fas fa-building&quot;,&quot;Recurring&quot;:&quot;fas fa-redo&quot;,&quot;Restaurant&quot;:&quot;fas fa-utensils&quot;,&quot;SaaS&quot;:&quot;fas fa-cloud&quot;,&quot;SEO&quot;:&quot;fas fa-search&quot;,&quot;Self Defense&quot;:&quot;fas fa-user-shield&quot;,&quot;Shaving&quot;:&quot;fas fa-cut&quot;,&quot;Shoes&quot;:&quot;fas fa-shoe-prints&quot;,&quot;Skincare&quot;:&quot;fas fa-spa&quot;,&quot;Sleep&quot;:&quot;fas fa-bed&quot;,&quot;Small Business&quot;:&quot;fas fa-store&quot;,&quot;Software&quot;:&quot;fas fa-code&quot;,&quot;Solar&quot;:&quot;fas fa-sun&quot;,&quot;Sports&quot;:&quot;fas fa-futbol&quot;,&quot;Sports Betting&quot;:&quot;fas fa-dice&quot;,&quot;Supplements&quot;:&quot;fas fa-capsules&quot;,&quot;Survival&quot;:&quot;fas fa-campground&quot;,&quot;T-shirt&quot;:&quot;fas fa-tshirt&quot;,&quot;Tax Preparation&quot;:&quot;fas fa-file-invoice-dollar&quot;,&quot;Tea&quot;:&quot;fas fa-mug-hot&quot;,&quot;Tech&quot;:&quot;fas fa-microchip&quot;,&quot;Toy&quot;:&quot;fas fa-robot&quot;,&quot;Travel&quot;:&quot;fas fa-passport&quot;,&quot;Vape&quot;:&quot;fas fa-smoking&quot;,&quot;Vegan&quot;:&quot;fas fa-leaf&quot;,&quot;Video&quot;:&quot;fas fa-video&quot;,&quot;VPN&quot;:&quot;fas fa-user-secret&quot;,&quot;Watch&quot;:&quot;fas fa-clock&quot;,&quot;Web Hosting&quot;:&quot;fas fa-server&quot;,&quot;Wedding&quot;:&quot;fas fa-ring&quot;,&quot;Weight Loss&quot;:&quot;fas fa-weight&quot;,&quot;Wine&quot;:&quot;fas fa-wine-bottle&quot;,&quot;Women&#039;s Health&quot;:&quot;fas fa-female&quot;,&quot;WordPress&quot;:&quot;fas fa-wordpress&quot;,&quot;Writing&quot;:&quot;fas fa-pen-fancy&quot;,&quot;Yoga&quot;:&quot;fas fa-spa&quot;\n};\nlet sellers = [], products = [], cart = [], currentSeller = null, pendingImages = [], shippingRulesArray = [], orders = [];\nlet selectedPaymentMethod = &#039;bank&#039;, currentShippingCost = 0;\nconst mppConfig = (function () {\nconst params = new URLSearchParams(window.location.search || &#039;&#039;);\nconst embedded = window.MPP_EMBED_CONFIG || {};\nreturn {\najaxUrl: embedded.ajaxUrl || params.get(&#039;mpp_ajax&#039;) || &#039;&#039;,\nnonce: embedded.nonce || params.get(&#039;mpp_nonce&#039;) || &#039;&#039;,\ndemoCheckout: typeof embedded.demoCheckout !== &#039;undefined&#039; ? !!embedded.demoCheckout : params.get(&#039;mpp_demo_checkout&#039;) === &#039;1&#039;\n};\n})();\nasync function notifyStoreRegistration(storeData) {\nif (!mppConfig.ajaxUrl || !mppConfig.nonce) {\nreturn { success: false, skipped: true, message: &#039;Missing AJAX configuration.&#039; };\n}\nconst formData = new FormData();\nformData.append(&#039;action&#039;, &#039;mpp_notify_new_store_registration&#039;);\nformData.append(&#039;nonce&#039;, mppConfig.nonce);\nformData.append(&#039;store_name&#039;, storeData.storeName || &#039;&#039;);\nformData.append(&#039;owner_name&#039;, storeData.owner || &#039;&#039;);\nformData.append(&#039;email&#039;, storeData.email || &#039;&#039;);\nformData.append(&#039;niche&#039;, storeData.niche || &#039;&#039;);\nformData.append(&#039;country&#039;, storeData.country || &#039;&#039;);\nformData.append(&#039;description&#039;, storeData.description || &#039;&#039;);\ntry {\nconst response = await fetch(mppConfig.ajaxUrl, {\nmethod: &#039;POST&#039;,\ncredentials: &#039;same-origin&#039;,\nbody: formData\n});\nconst data = await response.json();\nreturn data;\n} catch (error) {\nreturn { success: false, message: error &amp;&amp; error.message ? error.message : &#039;Request failed.&#039; };\n}\n}\n\nfunction getProductShippingDisplay(product){\nif(product.productType === &#039;digital&#039;) return { text: &quot;\ud83d\udcbb Digital - No Shipping&quot;, cost: 0, icon: &quot;fa-download&quot; };\nif(product.freeShippingWorldwide) return { text: &quot;\ud83d\ude9a FREE Shipping Worldwide&quot;, cost: 0, icon: &quot;fa-truck&quot; };\nreturn { text: `\ud83d\udce6 Shipping from $${(product.defaultShippingPrice || 5.99).toFixed(2)}`, cost: product.defaultShippingPrice || 5.99, icon: &quot;fa-box&quot; };\n}\nfunction getShippingCostForProduct(product, countryCode){\nif(product.productType === &#039;digital&#039;) return 0;\nif(product.freeShippingWorldwide) return 0;\nif(product.shippingRules &amp;&amp; product.shippingRules[countryCode]) return product.shippingRules[countryCode];\nreturn product.defaultShippingPrice || 5.99;\n}\nfunction getDiscountedPrice(price, discount) {\nif (!discount || discount &lt;= 0) return price;\nreturn price * (1 - discount \/ 100);\n}\nfunction generateData() {\nlet storeId = 1;\nfor(let niche of allNiches){\nfor(let i = 1; i &lt;= 50; i++){\nlet sellerId = storeId++;\nlet rating = (4.0 + Math.random() * 1.0).toFixed(1);\nlet totalSales = Math.floor(Math.random() * 5000) + 100;\nsellers.push({\nid: sellerId,\nstoreName: `${niche} Digital Store ${i}`,\nniche: niche,\nowner: marketplaceOwner,\nemail: marketplaceEmail,\nrating: parseFloat(rating),\ntotalSales: totalSales,\ntotalEarnings: totalSales * (Math.random() * 30 + 10),\nproductCount: 0,\ndigitalCount: 0,\nphysicalCount: 0,\ndescription: `Premium digital products in the ${niche} niche. Instant download after purchase.`\n});\nlet price = (Math.random() * 50 + 9.99).toFixed(2);\nlet discount = Math.random() &gt; 0.7 ? Math.floor(Math.random() * 40) + 5 : 0;\nproducts.push({\nid: products.length + 1,\nsellerId: sellerId,\nname: `${niche} Digital Bundle ${i}`,\nbrand: `${niche} Brand`,\nprice: parseFloat(price),\ndiscount: discount,\ndiscountedPrice: getDiscountedPrice(parseFloat(price), discount),\nstock: 999,\nimageUrl: `https:\/\/picsum.photos\/240\/180?random=${products.length + 1000}`,\nsellerStoreName: `${niche} Digital Store ${i}`,\nniche: niche,\nproductType: &#039;digital&#039;,\ncondition: &#039;New&#039;,\nsku: `DIG-${niche.substring(0,3).toUpperCase()}-${i}`,\nfreeShippingWorldwide: true,\ndefaultShippingPrice: 0,\ndescription: `High-quality digital ${niche.toLowerCase()} resources, instant download.`,\ndownloadLink: `https:\/\/marketplace-platform.com\/downloads\/${niche.toLowerCase().replace(\/ \/g, &#039;-&#039;)}-bundle-${i}.zip`,\nlicenseKeys: `LIC-${Date.now()}-${niche.substring(0,4).toUpperCase()}-${i}`,\nfileSize: `${Math.floor(Math.random() * 500 + 50)} MB`,\ncreatedAt: new Date(Date.now() - Math.random() * 30 * 24 * 60 * 60 * 1000)\n});\n}\n}\nsellers.forEach(seller =&gt; {\nseller.productCount = products.filter(p =&gt; p.sellerId === seller.id).length;\nseller.digitalCount = seller.productCount;\nseller.physicalCount = 0;\n});\ndocument.getElementById(&#039;totalSellersSpan&#039;).innerText = sellers.length;\ndocument.getElementById(&#039;totalProductsSpan&#039;).innerText = products.length;\nrenderNicheGrid(); renderFilteredProducts(); renderAllSellers();\n}\nfunction renderNicheGrid(){\nlet search = document.getElementById(&#039;searchNicheInput&#039;)?.value.toLowerCase()||&quot;&quot;;\nlet filtered = allNiches.filter(n=&gt;n.toLowerCase().includes(search));\ndocument.getElementById(&#039;nichesGrid&#039;).innerHTML = filtered.map(n=&gt;{\nlet nicheProducts = products.filter(p=&gt;p.niche===n);\nlet nicheSellers = sellers.filter(s=&gt;s.niche===n);\nreturn `&lt;div class=&quot;niche-card&quot; onclick=&quot;showNicheProducts(&#039;${n}&#039;)&quot;&gt;&lt;div class=&quot;niche-icon&quot;&gt;&lt;i class=&quot;${nicheIcons[n] || &#039;fas fa-tag&#039;}&quot;&gt;&lt;\/i&gt;&lt;\/div&gt;&lt;div class=&quot;niche-name&quot;&gt;${n}&lt;\/div&gt;&lt;div class=&quot;niche-stats&quot;&gt;&lt;span&gt;\ud83c\udfea ${nicheSellers.length} stores&lt;\/span&gt;&lt;span&gt;\ud83d\udce6 ${nicheProducts.length} products&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;`;\n}).join(&#039;&#039;);\n}\nfunction applyAdvancedSearch() {\nrenderFilteredProducts();\n}\nfunction resetSearch() {\ndocument.getElementById(&#039;searchKeyword&#039;).value = &#039;&#039;;\ndocument.getElementById(&#039;minPrice&#039;).value = &#039;&#039;;\ndocument.getElementById(&#039;maxPrice&#039;).value = &#039;&#039;;\ndocument.getElementById(&#039;sortBy&#039;).value = &#039;default&#039;;\nrenderFilteredProducts();\n}\nfunction renderFilteredProducts() {\nlet keyword = document.getElementById(&#039;searchKeyword&#039;)?.value.toLowerCase() || &#039;&#039;;\nlet minPrice = parseFloat(document.getElementById(&#039;minPrice&#039;)?.value) || 0;\nlet maxPrice = parseFloat(document.getElementById(&#039;maxPrice&#039;)?.value) || Infinity;\nlet sortBy = document.getElementById(&#039;sortBy&#039;)?.value || &#039;default&#039;;\nlet filtered = products.filter(p =&gt; {\nlet matchesKeyword = keyword === &#039;&#039; || p.name.toLowerCase().includes(keyword) || (p.brand &amp;&amp; p.brand.toLowerCase().includes(keyword)) || p.sellerStoreName.toLowerCase().includes(keyword);\nlet finalPrice = p.discount &amp;&amp; p.discount &gt; 0 ? p.discountedPrice : p.price;\nlet matchesPrice = finalPrice &gt;= minPrice &amp;&amp; finalPrice &lt;= maxPrice;\nreturn matchesKeyword &amp;&amp; matchesPrice;\n});\nif (sortBy === &#039;price_asc&#039;) filtered.sort((a, b) =&gt; (a.discount &amp;&amp; a.discount &gt; 0 ? a.discountedPrice : a.price) - (b.discount &amp;&amp; b.discount &gt; 0 ? b.discountedPrice : b.price));\nelse if (sortBy === &#039;price_desc&#039;) filtered.sort((a, b) =&gt; (b.discount &amp;&amp; b.discount &gt; 0 ? b.discountedPrice : b.price) - (a.discount &amp;&amp; a.discount &gt; 0 ? a.discountedPrice : a.price));\nelse if (sortBy === &#039;newest&#039;) filtered.sort((a, b) =&gt; new Date(b.createdAt) - new Date(a.createdAt));\nelse if (sortBy === &#039;discount_high&#039;) filtered.sort((a, b) =&gt; (b.discount || 0) - (a.discount || 0));\ndocument.getElementById(&#039;globalProductsGrid&#039;).innerHTML = filtered.slice(0, 20).map(p =&gt; productCardHTML(p)).join(&#039;&#039;);\n}\nfunction showNicheProducts(niche){\nlet filtered = products.filter(p=&gt;p.niche===niche);\ndocument.getElementById(&#039;nicheHeader&#039;).innerHTML = `&lt;div class=&quot;hero&quot;&gt;&lt;h2&gt;&lt;i class=&quot;${nicheIcons[niche] || &#039;fas fa-tag&#039;}&quot;&gt;&lt;\/i&gt; ${niche}&lt;\/h2&gt;&lt;p&gt;${filtered.length} digital products available for instant download&lt;\/p&gt;&lt;\/div&gt;`;\ndocument.getElementById(&#039;nicheProductsList&#039;).innerHTML = filtered.map(p=&gt;productCardHTML(p)).join(&#039;&#039;);\nshowView(&#039;niche&#039;);\n}\nfunction productCardHTML(p){\nlet shippingInfo = getProductShippingDisplay(p);\nlet typeBadge = p.productType === &#039;digital&#039; ? &#039;&lt;span class=&quot;product-type-badge badge-digital&quot;&gt;&lt;i class=&quot;fas fa-download&quot;&gt;&lt;\/i&gt; Digital&lt;\/span&gt;&#039; : &#039;&lt;span class=&quot;product-type-badge badge-physical&quot;&gt;&lt;i class=&quot;fas fa-box&quot;&gt;&lt;\/i&gt; Physical&lt;\/span&gt;&#039;;\nlet finalPrice = p.discount &amp;&amp; p.discount &gt; 0 ? p.discountedPrice : p.price;\nlet discountHTML = p.discount &amp;&amp; p.discount &gt; 0 ? `&lt;span style=&quot;text-decoration:line-through; font-size:0.8rem; color:#ef4444;&quot;&gt;$${p.price.toFixed(2)}&lt;\/span&gt; &lt;span style=&quot;color:#10b981;&quot;&gt;-${p.discount}%&lt;\/span&gt;` : &#039;&#039;;\nreturn `&lt;div class=&quot;product-card&quot;&gt;&lt;img src=&quot;${p.imageUrl}&quot; class=&quot;product-img&quot; onerror=&quot;this.src=&#039;https:\/\/picsum.photos\/240\/180?random=${p.id}&#039;&quot;&gt;&lt;div class=&quot;product-info&quot;&gt;&lt;div class=&quot;product-title&quot;&gt;${p.name}&lt;\/div&gt;&lt;div class=&quot;product-price&quot;&gt;$${finalPrice.toFixed(2)} ${discountHTML}&lt;\/div&gt;&lt;div class=&quot;product-seller&quot;&gt;&lt;i class=&quot;fas fa-store&quot;&gt;&lt;\/i&gt; ${p.sellerStoreName}&lt;br&gt;&lt;span style=&quot;font-size:0.65rem;&quot;&gt;by Marketplace Platform&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;product-shipping-info&quot;&gt;${typeBadge} &lt;i class=&quot;fas ${shippingInfo.icon}&quot;&gt;&lt;\/i&gt; ${shippingInfo.text}&lt;\/div&gt;&lt;button class=&quot;btn-primary&quot; onclick=&quot;addToCart(${p.id})&quot;&gt;Add to Cart&lt;\/button&gt;&lt;\/div&gt;&lt;\/div&gt;`;\n}\nfunction renderAllSellers(){\nlet search = document.getElementById(&#039;searchSellerInput&#039;)?.value.toLowerCase()||&quot;&quot;;\nlet filtered = sellers.filter(s=&gt;s.storeName.toLowerCase().includes(search) || s.niche.toLowerCase().includes(search));\ndocument.getElementById(&#039;allSellersGrid&#039;).innerHTML = filtered.map(s=&gt;`&lt;div class=&quot;store-card&quot; onclick=&quot;showSellerStore(${s.id})&quot;&gt;&lt;div class=&quot;store-header&quot;&gt;&lt;div class=&quot;store-avatar&quot;&gt;&lt;i class=&quot;${nicheIcons[s.niche] || &#039;fas fa-store&#039;}&quot;&gt;&lt;\/i&gt;&lt;\/div&gt;&lt;div class=&quot;store-info&quot;&gt;&lt;div class=&quot;store-name&quot;&gt;${s.storeName}&lt;\/div&gt;&lt;div class=&quot;store-niche&quot;&gt;&lt;i class=&quot;${nicheIcons[s.niche] || &#039;fas fa-tag&#039;}&quot;&gt;&lt;\/i&gt; ${s.niche}&lt;\/div&gt;&lt;div class=&quot;store-rating&quot;&gt;&lt;span class=&quot;stars&quot;&gt;${&#039;\u2605&#039;.repeat(Math.floor(s.rating))}${&#039;\u2606&#039;.repeat(5-Math.floor(s.rating))}&lt;\/span&gt; &lt;span style=&quot;font-size:0.7rem;&quot;&gt;(${s.rating})&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;stats-row&quot;&gt;&lt;div class=&quot;stat-badge&quot;&gt;&lt;div class=&quot;stat-badge-value&quot;&gt;${s.totalSales.toLocaleString()}&lt;\/div&gt;&lt;div class=&quot;stat-badge-label&quot;&gt;Sales&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;stat-badge&quot;&gt;&lt;div class=&quot;stat-badge-value&quot;&gt;${s.productCount}&lt;\/div&gt;&lt;div class=&quot;stat-badge-label&quot;&gt;Products&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;stat-badge&quot;&gt;&lt;div class=&quot;stat-badge-value&quot;&gt;\ud83d\udcbb ${s.digitalCount} Digital | \ud83d\udce6 ${s.physicalCount} Physical&lt;\/div&gt;&lt;div class=&quot;stat-badge-label&quot;&gt;Digital | Physical&lt;\/div&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div style=&quot;margin-top:0.5rem; font-size:0.65rem; color:#6b21a5;&quot;&gt;&lt;i class=&quot;fas fa-store&quot;&gt;&lt;\/i&gt; Operated by Marketplace Platform&lt;\/div&gt;&lt;\/div&gt;`).join(&#039;&#039;);\n}\nfunction showSellerStore(id){\nlet seller = sellers.find(s=&gt;s.id===id);\nlet sellerProds = products.filter(p=&gt;p.sellerId===id);\ndocument.getElementById(&#039;sellerStoreContainer&#039;).innerHTML = `&lt;div class=&quot;hero&quot;&gt;&lt;h2&gt;&lt;i class=&quot;${nicheIcons[seller.niche] || &#039;fas fa-store&#039;}&quot;&gt;&lt;\/i&gt; ${seller.storeName}&lt;\/h2&gt;&lt;div class=&quot;store-rating&quot; style=&quot;margin-top:0.5rem;&quot;&gt;&lt;span class=&quot;stars&quot;&gt;${&#039;\u2605&#039;.repeat(Math.floor(seller.rating))}${&#039;\u2606&#039;.repeat(5-Math.floor(seller.rating))}&lt;\/span&gt; \u2b50 ${seller.rating} \u00b7 ${seller.totalSales.toLocaleString()} sales \u00b7 ${seller.productCount} products (${seller.digitalCount} Digital, ${seller.physicalCount} Physical)&lt;\/div&gt;&lt;p&gt;${seller.description}&lt;\/p&gt;&lt;div style=&quot;margin-top:0.5rem; font-size:0.8rem;&quot;&gt;&lt;i class=&quot;fas fa-store&quot;&gt;&lt;\/i&gt; Store operated by: &lt;strong&gt;Marketplace Platform - Buy and Sell Products&lt;\/strong&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;div class=&quot;products-grid&quot; id=&quot;sellerProductsGrid&quot;&gt;&lt;\/div&gt;`;\ndocument.getElementById(&#039;sellerProductsGrid&#039;).innerHTML = sellerProds.map(p=&gt;productCardHTML(p)).join(&#039;&#039;);\nshowView(&#039;sellerStore&#039;);\n}\nfunction addToCart(id){\nlet p = products.find(p=&gt;p.id===id);\nlet exist = cart.find(i=&gt;i.id===id);\nif(exist) exist.quantity++;\nelse cart.push({...p, quantity:1, sellerId: p.sellerId, sellerStoreName: p.sellerStoreName, productType: p.productType, freeShippingWorldwide: p.freeShippingWorldwide, defaultShippingPrice: p.defaultShippingPrice, shippingRules: p.shippingRules});\nsaveCart(); showToast(`\u2705 ${p.name} added to cart`);\n}\nfunction saveCart(){ localStorage.setItem(&#039;marketplaceCart&#039;,JSON.stringify(cart)); updateCartIcon(); }\nfunction loadCart(){ let c = localStorage.getItem(&#039;marketplaceCart&#039;); if(c) cart = JSON.parse(c); updateCartIcon(); }\nfunction updateCartIcon(){ let total = cart.reduce((s,i)=&gt;s+i.quantity,0); let badge = document.getElementById(&#039;cartCount&#039;); if(total&gt;0){ badge.innerText=total; badge.style.display=&#039;flex&#039;; } else badge.style.display=&#039;none&#039;; }\nfunction renderCartPage(){\nif(cart.length===0){ document.getElementById(&#039;cartContainer&#039;).innerHTML=&#039;&lt;div class=&quot;hero&quot;&gt;Cart empty&lt;\/div&gt;&#039;; return; }\nlet total=0, html=&#039;&lt;div style=&quot;background:white; border-radius:1.5rem; padding:1.5rem;&quot;&gt;&#039;;\ncart.forEach(item=&gt;{\ntotal+=item.price*item.quantity;\nlet shippingInfo = getProductShippingDisplay(item);\nhtml+=`&lt;div style=&quot;display:flex; justify-content:space-between; padding:0.8rem 0; border-bottom:1px solid #e2e8f0;&quot;&gt;&lt;div&gt;&lt;strong&gt;${item.name}&lt;\/strong&gt;&lt;br&gt;$${item.price.toFixed(2)} x ${item.quantity}&lt;br&gt;&lt;span style=&quot;font-size:0.65rem; color:#f59e0b;&quot;&gt;&lt;i class=&quot;fas ${shippingInfo.icon}&quot;&gt;&lt;\/i&gt; ${shippingInfo.text}&lt;\/span&gt;&lt;\/div&gt;&lt;div&gt;$${(item.price*item.quantity).toFixed(2)}&lt;br&gt;&lt;button style=&quot;background:#ef4444; border:none; color:white; border-radius:40px; padding:0.2rem 0.8rem; margin-top:5px;&quot; onclick=&quot;removeCartItem(${item.id})&quot;&gt;Remove&lt;\/button&gt;&lt;\/div&gt;&lt;\/div&gt;`;\n});\nhtml+=`&lt;div style=&quot;margin-top:1rem; padding-top:0.5rem;&quot;&gt;&lt;strong&gt;Subtotal: $${total.toFixed(2)}&lt;\/strong&gt;&lt;\/div&gt;&lt;button class=&quot;btn-primary&quot; style=&quot;margin-top:1rem;&quot; onclick=&quot;openCheckoutModal()&quot;&gt;Proceed to Checkout&lt;\/button&gt;&lt;\/div&gt;`;\ndocument.getElementById(&#039;cartContainer&#039;).innerHTML = html;\n}\nfunction removeCartItem(id){ cart = cart.filter(i=&gt;i.id!==id); saveCart(); renderCartPage(); }\nfunction updateShippingCostForCart(){\nlet country = document.getElementById(&#039;countrySelect&#039;).value;\nlet totalShipping = 0;\nfor(let item of cart){\nlet product = products.find(p =&gt; p.id === item.id);\nif(product) totalShipping += getShippingCostForProduct(product, country) * item.quantity;\n}\ncurrentShippingCost = totalShipping;\nupdateOrderSummary();\n}\nfunction updateOrderSummary(){\nlet subtotal = cart.reduce((s,i)=&gt;s+i.price*i.quantity,0);\nlet shipping = currentShippingCost;\nlet fee = subtotal * 0.05;\nlet total = subtotal + shipping;\ndocument.getElementById(&#039;checkoutSubtotal&#039;).innerText = `$${subtotal.toFixed(2)}`;\ndocument.getElementById(&#039;checkoutShipping&#039;).innerText = `$${shipping.toFixed(2)}`;\ndocument.getElementById(&#039;checkoutFee&#039;).innerText = `$${fee.toFixed(2)}`;\ndocument.getElementById(&#039;checkoutTotal&#039;).innerText = `$${total.toFixed(2)}`;\nlet itemsHtml = cart.map(i=&gt;{ let si = getProductShippingDisplay(i); return `&lt;div class=&quot;cart-item-row&quot;&gt;&lt;span&gt;${i.name} x${i.quantity}&lt;br&gt;&lt;span style=&quot;font-size:0.65rem;&quot;&gt;${si.text}&lt;\/span&gt;&lt;\/span&gt;&lt;span&gt;$${(i.price*i.quantity).toFixed(2)}&lt;\/span&gt;&lt;\/div&gt;`; }).join(&#039;&#039;);\ndocument.getElementById(&#039;checkoutCartItems&#039;).innerHTML = itemsHtml || &#039;&lt;div&gt;Cart empty&lt;\/div&gt;&#039;;\n}\nfunction openCheckoutModal(){\nif(cart.length===0){ alert(&quot;Your cart is empty&quot;); return; }\nupdateShippingCostForCart();\ndocument.querySelectorAll(&#039;.payment-method-card&#039;).forEach(c=&gt;{\nc.addEventListener(&#039;click&#039;,function(){\ndocument.querySelectorAll(&#039;.payment-method-card&#039;).forEach(c=&gt;c.classList.remove(&#039;selected&#039;));\nthis.classList.add(&#039;selected&#039;);\nselectedPaymentMethod = this.dataset.method;\ndocument.getElementById(&#039;bankDetails&#039;).style.display = selectedPaymentMethod===&#039;bank&#039;?&#039;block&#039;:&#039;none&#039;;\ndocument.getElementById(&#039;payoneerDetails&#039;).style.display = selectedPaymentMethod===&#039;payoneer&#039;?&#039;block&#039;:&#039;none&#039;;\ndocument.getElementById(&#039;cryptoDetails&#039;).style.display = selectedPaymentMethod===&#039;crypto&#039;?&#039;block&#039;:&#039;none&#039;;\ndocument.getElementById(&#039;cardDetails&#039;).style.display = (selectedPaymentMethod===&#039;visa&#039;||selectedPaymentMethod===&#039;mastercard&#039;)?&#039;block&#039;:&#039;none&#039;;\n});\n});\ndocument.querySelector(&#039;.payment-method-card&#039;)?.click();\ndocument.getElementById(&#039;countrySelect&#039;).addEventListener(&#039;change&#039;, updateShippingCostForCart);\nupdateOrderSummary();\ndocument.getElementById(&#039;checkoutModal&#039;).style.display=&#039;flex&#039;;\n}\nfunction closeCheckoutModal(){ document.getElementById(&#039;checkoutModal&#039;).style.display=&#039;none&#039;; }\nfunction processSecurePayment(){\nif(!document.getElementById(&#039;fullName&#039;).value || !document.getElementById(&#039;streetAddress&#039;).value || !document.getElementById(&#039;city&#039;).value || !document.getElementById(&#039;emailAddress&#039;).value){ alert(&quot;Please fill all shipping fields&quot;); return; }\nlet subtotal = cart.reduce((s,i)=&gt;s+i.price*i.quantity,0);\nlet totalPaid = subtotal + currentShippingCost;\nlet sellerGroups = {};\ncart.forEach(item =&gt; {\nif(!sellerGroups[item.sellerId]) sellerGroups[item.sellerId] = { sellerId: item.sellerId, sellerStoreName: item.sellerStoreName, items: [], subtotal: 0, shipping: 0 };\nsellerGroups[item.sellerId].items.push(item);\nsellerGroups[item.sellerId].subtotal += item.price * item.quantity;\nlet product = products.find(p =&gt; p.id === item.id);\nif(product) sellerGroups[item.sellerId].shipping += getShippingCostForProduct(product, document.getElementById(&#039;countrySelect&#039;).value) * item.quantity;\n});\nfor(let sellerId in sellerGroups){\nlet group = sellerGroups[sellerId];\nlet orderId = &#039;ORD-&#039; + Date.now() + &#039;-&#039; + Math.random().toString(36).substr(2,6).toUpperCase() + &#039;-&#039; + sellerId;\nlet order = { id: orderId, date: new Date().toLocaleString(), customerName: document.getElementById(&#039;fullName&#039;).value, customerPhone: document.getElementById(&#039;phoneNumber&#039;).value, customerEmail: document.getElementById(&#039;emailAddress&#039;).value, address: { street: document.getElementById(&#039;streetAddress&#039;).value, apartment: document.getElementById(&#039;apartment&#039;).value, city: document.getElementById(&#039;city&#039;).value, state: document.getElementById(&#039;state&#039;).value, zip: document.getElementById(&#039;zipCode&#039;).value, country: document.getElementById(&#039;countrySelect&#039;).value }, items: group.items.map(i =&gt; ({ name: i.name, quantity: i.quantity, price: i.price, total: i.price * i.quantity, type: i.productType })), subtotal: group.subtotal, shippingCost: group.shipping, totalPaid: group.subtotal + group.shipping, commission: group.subtotal * 0.05, sellerEarnings: group.subtotal * 0.95, paymentMethod: selectedPaymentMethod, sellerId: parseInt(sellerId), sellerStoreName: group.sellerStoreName };\norders.push(order);\nlet seller = sellers.find(s =&gt; s.id === parseInt(sellerId));\nif(seller){ seller.totalSales = (seller.totalSales || 0) + 1; seller.totalEarnings = (seller.totalEarnings || 0) + order.sellerEarnings; }\n}\nalert(`\u2705 DEMO ORDER PLACED!\\n\\nTotal: $${totalPaid.toFixed(2)}\\nDemo payment method: ${selectedPaymentMethod.toUpperCase()}\\nShipping: $${currentShippingCost.toFixed(2)}\\n\\nConfirmation sent to ${document.getElementById(&#039;emailAddress&#039;).value}`);\ncart = []; saveCart(); renderCartPage(); closeCheckoutModal(); showView(&#039;home&#039;);\nupdateSellerStats();\nshowToast(&quot;Order placed! Check your email for confirmation.&quot;);\n}\nfunction renderOrdersList(){\nif(!currentSeller &amp;&amp; sellers.length&gt;0) currentSeller = sellers[0];\nif(!currentSeller) return;\nlet sellerOrders = orders.filter(o =&gt; o.sellerId === currentSeller.id);\nlet container = document.getElementById(&#039;sellerOrdersList&#039;);\nif(!container) return;\nif(sellerOrders.length === 0){ container.innerHTML = &#039;&lt;p style=&quot;text-align:center; color:#94a3b8; padding:2rem;&quot;&gt;No orders yet.&lt;\/p&gt;&#039;; return; }\ncontainer.innerHTML = sellerOrders.map(order =&gt; `&lt;div class=&quot;order-item&quot;&gt;&lt;div class=&quot;order-header&quot;&gt;&lt;span class=&quot;order-number&quot;&gt;&lt;i class=&quot;fas fa-receipt&quot;&gt;&lt;\/i&gt; ${order.id}&lt;\/span&gt;&lt;span class=&quot;order-date&quot;&gt;${order.date}&lt;\/span&gt;&lt;span class=&quot;order-status&quot;&gt;Completed&lt;\/span&gt;&lt;\/div&gt;&lt;div class=&quot;order-customer&quot;&gt;&lt;strong&gt;Customer:&lt;\/strong&gt; ${order.customerName}&lt;\/div&gt;&lt;div class=&quot;order-address&quot;&gt;${order.address.street}, ${order.address.city}, ${order.address.country}&lt;\/div&gt;&lt;div class=&quot;order-items&quot;&gt;&lt;strong&gt;Items:&lt;\/strong&gt;${order.items.map(item =&gt; `&lt;div&gt;${item.name} x${item.quantity} - $${item.total.toFixed(2)}&lt;\/div&gt;`).join(&#039;&#039;)}&lt;\/div&gt;&lt;div class=&quot;order-earnings&quot;&gt;&lt;span&gt;Your Earnings: $${order.sellerEarnings.toFixed(2)}&lt;\/span&gt;&lt;span&gt;Shipping paid by buyer: $${order.shippingCost.toFixed(2)}&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;`).join(&#039;&#039;);\nif(sellerOrders.length &gt; 0 &amp;&amp; currentSeller) {\nshowToast(`\ud83d\udce6 New order received! You have ${sellerOrders.length} new order(s).`);\n}\n}\nfunction toggleFreeShipping() { let chk = document.getElementById(&#039;freeShippingWorldwide&#039;); let section = document.getElementById(&#039;customShippingSection&#039;); if(chk &amp;&amp; section) section.style.display = chk.checked ? &#039;none&#039; : &#039;block&#039;; }\nfunction addShippingRule() { let country = document.getElementById(&#039;newRuleCountry&#039;).value, price = parseFloat(document.getElementById(&#039;newRulePrice&#039;).value); if(!country || isNaN(price)) return; shippingRulesArray.push({country, price}); renderShippingRulesList(); }\nfunction removeShippingRule(idx) { shippingRulesArray.splice(idx,1); renderShippingRulesList(); }\nfunction renderShippingRulesList() { let container = document.getElementById(&#039;shippingRulesList&#039;); if(container) container.innerHTML = shippingRulesArray.map((r,i)=&gt;`&lt;div class=&quot;shipping-rule-row&quot;&gt;&lt;span&gt;${r.country}: $${r.price.toFixed(2)}&lt;\/span&gt;&lt;button class=&quot;btn-small&quot; style=&quot;background:#ef4444;&quot; onclick=&quot;removeShippingRule(${i})&quot;&gt;Remove&lt;\/button&gt;&lt;\/div&gt;`).join(&#039;&#039;); }\nfunction toggleProductTypeFields() { let type = document.getElementById(&#039;productType&#039;).value; document.getElementById(&#039;digitalFields&#039;).style.display = type===&#039;digital&#039;?&#039;block&#039;:&#039;none&#039;; document.getElementById(&#039;physicalShippingFields&#039;).style.display = type===&#039;physical&#039;?&#039;block&#039;:&#039;none&#039;; }\nfunction getProductTypeBadge(type) { return type===&#039;digital&#039;?&#039;&lt;span class=&quot;badge-product badge-digital&quot;&gt;&lt;i class=&quot;fas fa-download&quot;&gt;&lt;\/i&gt; Digital&lt;\/span&gt;&#039;:&#039;&lt;span class=&quot;badge-product badge-physical&quot;&gt;&lt;i class=&quot;fas fa-box&quot;&gt;&lt;\/i&gt; Physical&lt;\/span&gt;&#039;; }\nfunction updateSellerStats() {\nif(!currentSeller &amp;&amp; sellers.length&gt;0) currentSeller = sellers[0];\nif(!currentSeller) return;\nlet sellerProducts = products.filter(p =&gt; p.sellerId === currentSeller.id);\nlet totalEarnings = orders.filter(o =&gt; o.sellerId === currentSeller.id).reduce((sum, o) =&gt; sum + o.sellerEarnings, 0);\ndocument.getElementById(&#039;statProducts&#039;).innerText = sellerProducts.length;\ndocument.getElementById(&#039;statSales&#039;).innerText = orders.filter(o =&gt; o.sellerId === currentSeller.id).length;\ndocument.getElementById(&#039;statEarnings&#039;).innerText = `$${totalEarnings.toFixed(2)}`;\ndocument.getElementById(&#039;statCommission&#039;).innerText = `$${(totalEarnings * 0.05 \/ 0.95).toFixed(2)}`;\nupdateEligibilityMessages(); renderOrdersList();\n}\nfunction updateEligibilityMessages() { if(!currentSeller) return; let productCount = products.filter(p =&gt; p.sellerId === currentSeller.id).length; let needed = 20 - productCount; let isEligible = productCount &gt;= 20; [&#039;websiteEligibilityMsg&#039;,&#039;sponsoredEligibilityMsg&#039;,&#039;radioEligibilityMsg&#039;].forEach(id =&gt; { let el = document.getElementById(id); if(el) el.innerHTML = isEligible ? `\u2705 ELIGIBLE! You have ${productCount} products.` : `\u26a0\ufe0f Need ${needed} more products.`; }); let msg = document.getElementById(&#039;productCountMessage&#039;); if(msg) msg.innerHTML = isEligible ? &#039;\ud83c\udf89 You qualify for FREE benefits!&#039; : `\ud83d\udce6 Add ${needed} more products to unlock FREE benefits!`; }\nasync function registerStore() {\nlet storeName = document.getElementById(&#039;storeName&#039;).value.trim(), owner = document.getElementById(&#039;ownerName&#039;).value.trim(), email = document.getElementById(&#039;sellerEmail&#039;).value.trim(), niche = document.getElementById(&#039;sellerNicheSelect&#039;).value;\nif(!storeName || !owner || !email || !niche) { alert(&quot;Fill all fields&quot;); return; }\nlet newId = Date.now();\nlet newStore = { id: newId, storeName, owner, email, niche, country: document.getElementById(&#039;sellerCountry&#039;).value, description: document.getElementById(&#039;storeDescription&#039;).value, rating: 5.0, totalSales: 0, totalEarnings: 0, productCount: 0, digitalCount: 0, physicalCount: 0 };\nsellers.push(newStore);\ncurrentSeller = newStore;\nupdateSellerStats();\nrenderNicheGrid();\nrenderAllSellers();\nupdateGlobalCounters();\nconst notifyResult = await notifyStoreRegistration(newStore);\nif (notifyResult &amp;&amp; notifyResult.success) {\nshowToast(&#039;\ud83d\udce7 Registration email sent to marketplace admin.&#039;);\n} else if (!notifyResult?.skipped) {\nshowToast(&#039;\u26a0\ufe0f Store registered, but email notification failed.&#039;);\n}\nalert(`\u2705 Store &quot;${storeName}&quot; registered in ${niche} niche!\n\nAdmin email notification: ${notifyResult &amp;&amp; notifyResult.success ? &#039;sent&#039; : &#039;not confirmed&#039;}`);\n}\nfunction publishProduct() {\nif(!currentSeller &amp;&amp; sellers.length&gt;0) currentSeller = sellers[sellers.length-1];\nif(!currentSeller) { alert(&quot;Register your store first.&quot;); return; }\nlet title = document.getElementById(&#039;prodTitle&#039;).value.trim(), desc = document.getElementById(&#039;prodDesc&#039;).value.trim(), price = parseFloat(document.getElementById(&#039;prodPrice&#039;).value);\nif(!title || !desc || isNaN(price) || price&lt;=0){ alert(&quot;Complete all fields&quot;); return; }\nlet moderation = moderateContent(title + &#039; &#039; + desc);\nif (!moderation.approved) { alert(`Product rejected: ${moderation.reason}`); return; }\nlet imgUrl = pendingImages.length ? pendingImages[0] : `https:\/\/picsum.photos\/240\/180?random=${Date.now()}`;\nlet productType = document.getElementById(&#039;productType&#039;).value;\nlet freeShipping = productType === &#039;digital&#039; ? true : (document.getElementById(&#039;freeShippingWorldwide&#039;)?.checked || false);\nlet defaultShipping = (productType === &#039;digital&#039; || freeShipping) ? 0 : (parseFloat(document.getElementById(&#039;defaultShippingPrice&#039;).value) || 5.99);\nlet shippingRules = {};\nif(productType === &#039;physical&#039; &amp;&amp; !freeShipping){ shippingRulesArray.forEach(rule =&gt; { shippingRules[rule.country] = rule.price; }); }\nlet downloadLink = &#039;&#039;, licenseKeys = &#039;&#039;;\nif(productType === &#039;digital&#039;) {\ndownloadLink = document.getElementById(&#039;downloadLink&#039;).value || `https:\/\/marketplace.com\/downloads\/${Date.now()}.zip`;\nlicenseKeys = document.getElementById(&#039;licenseKeys&#039;).value || `LIC-${Date.now()}`;\n}\nlet discount = parseInt(document.getElementById(&#039;productDiscount&#039;).value) || 0;\nlet newProd = { id: Date.now(), sellerId: currentSeller.id, name: title, brand: title.split(&#039; &#039;)[0], price: price, discount: discount, discountedPrice: getDiscountedPrice(price, discount), stock: parseInt(document.getElementById(&#039;prodStock&#039;).value), imageUrl: imgUrl, sellerStoreName: currentSeller.storeName, niche: currentSeller.niche, productType: productType, condition: document.getElementById(&#039;productCondition&#039;).value, sku: document.getElementById(&#039;productSku&#039;).value || `SKU-${Date.now()}`, freeShippingWorldwide: freeShipping, defaultShippingPrice: defaultShipping, shippingRules: shippingRules, downloadLink: downloadLink, licenseKeys: licenseKeys, description: desc, createdAt: new Date() };\nproducts.push(newProd);\ncurrentSeller.productCount = products.filter(p=&gt;p.sellerId === currentSeller.id).length;\nif(productType === &#039;physical&#039;) currentSeller.physicalCount++; else currentSeller.digitalCount++;\nlet shippingDisplay = productType === &#039;digital&#039; ? &quot;\ud83d\udcbb Digital - No Shipping&quot; : (freeShipping ? &quot;FREE Shipping Worldwide&quot; : `Shipping from $${defaultShipping.toFixed(2)}`);\ndocument.getElementById(&#039;myProductsList&#039;).innerHTML = products.filter(p=&gt;p.sellerId === currentSeller.id).map(p=&gt;`&lt;div class=&quot;product-item&quot;&gt;&lt;div&gt;&lt;div class=&quot;product-item-title&quot;&gt;${p.name}&lt;\/div&gt;&lt;div class=&quot;product-item-price&quot;&gt;$${p.price.toFixed(2)}&lt;\/div&gt;&lt;div&gt;${getProductTypeBadge(p.productType)} ${p.condition} | SKU: ${p.sku}&lt;br&gt;&lt;span style=&quot;font-size:0.65rem;&quot;&gt;${p.productType === &#039;digital&#039; ? &#039;\ud83d\udcbb Digital - No Shipping&#039; : (p.freeShippingWorldwide ? &#039;\ud83d\ude9a FREE Shipping&#039; : `\ud83d\udce6 Shipping from $${p.defaultShippingPrice?.toFixed(2) || &quot;5.99&quot;}`)}&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;button class=&quot;delete-btn&quot; onclick=&quot;deleteProduct(${p.id})&quot;&gt;Delete&lt;\/button&gt;&lt;\/div&gt;`).join(&#039;&#039;);\nupdateGlobalCounters(); updateSellerStats(); renderNicheGrid(); renderFilteredProducts(); showToast(`\u2705 &quot;${title}&quot; published!`);\nshippingRulesArray = []; renderShippingRulesList(); pendingImages = []; renderPreviews();\n}\nfunction deleteProduct(id) { if(confirm(&#039;Delete product?&#039;)) { products = products.filter(p =&gt; p.id !== id); if(currentSeller){ currentSeller.productCount = products.filter(p=&gt;p.sellerId === currentSeller.id).length; currentSeller.physicalCount = products.filter(p=&gt;p.sellerId === currentSeller.id &amp;&amp; p.productType === &#039;physical&#039;).length; currentSeller.digitalCount = products.filter(p=&gt;p.sellerId === currentSeller.id &amp;&amp; p.productType === &#039;digital&#039;).length; } document.getElementById(&#039;myProductsList&#039;).innerHTML = (currentSeller ? products.filter(p=&gt;p.sellerId === currentSeller.id) : []).map(p=&gt;`&lt;div class=&quot;product-item&quot;&gt;&lt;div&gt;&lt;div class=&quot;product-item-title&quot;&gt;${p.name}&lt;\/div&gt;&lt;div class=&quot;product-item-price&quot;&gt;$${p.price.toFixed(2)}&lt;\/div&gt;&lt;div&gt;${getProductTypeBadge(p.productType)} ${p.condition} | SKU: ${p.sku}&lt;br&gt;&lt;span style=&quot;font-size:0.65rem;&quot;&gt;${p.productType === &#039;digital&#039; ? &#039;\ud83d\udcbb Digital - No Shipping&#039; : (p.freeShippingWorldwide ? &#039;\ud83d\ude9a FREE Shipping&#039; : `\ud83d\udce6 Shipping from $${p.defaultShippingPrice?.toFixed(2) || &quot;5.99&quot;}`)}&lt;\/span&gt;&lt;\/div&gt;&lt;\/div&gt;&lt;button class=&quot;delete-btn&quot; onclick=&quot;deleteProduct(${p.id})&quot;&gt;Delete&lt;\/button&gt;&lt;\/div&gt;`).join(&#039;&#039;); updateSellerStats(); renderNicheGrid(); renderFilteredProducts(); showToast(&#039;Product deleted&#039;); } }\nfunction requestFreeWebsite() { let productCount = products.filter(p=&gt;p.sellerId===currentSeller?.id).length; if(productCount&lt;20){ alert(`Need ${20-productCount} more products`); return; } alert(&quot;Free website request submitted! ($1000 value)&quot;); }\nfunction claimSponsoredPost() { let productCount = products.filter(p=&gt;p.sellerId===currentSeller?.id).length; if(productCount&lt;20){ alert(`Need ${20-productCount} more products`); return; } alert(&quot;Free sponsored post ($100) activated for 10 days!&quot;); }\nfunction claimRadioAd() { let productCount = products.filter(p=&gt;p.sellerId===currentSeller?.id).length; if(productCount&lt;20){ alert(`Need ${20-productCount} more products`); return; } alert(&quot;Free radio ad ($50) activated for 1 month!&quot;); }\nfunction showToast(msg) { let t = document.createElement(&#039;div&#039;); t.className=&#039;toast-msg&#039;; t.innerText=msg; document.body.appendChild(t); setTimeout(()=&gt;t.remove(),2800); }\nfunction renderPreviews() { document.getElementById(&#039;imagePreviewContainer&#039;).innerHTML = pendingImages.map((img,i)=&gt;`&lt;div&gt;&lt;img src=&quot;${img}&quot; class=&quot;preview-img&quot;&gt;&lt;button onclick=&quot;removeImg(${i})&quot; style=&quot;background:#ef4444; color:white; border:none; border-radius:20px;&quot;&gt;\u2715&lt;\/button&gt;&lt;\/div&gt;`).join(&#039;&#039;); }\nfunction removeImg(idx) { pendingImages.splice(idx,1); renderPreviews(); }\nfunction showView(view) { document.querySelectorAll(&#039;.view&#039;).forEach(v=&gt;v.classList.remove(&#039;active&#039;)); document.getElementById(`${view}View`).classList.add(&#039;active&#039;); if(view===&#039;cart&#039;) renderCartPage(); if(view===&#039;sellers&#039;) renderAllSellers(); if(view===&#039;home&#039;) renderFilteredProducts(); if(view===&#039;dashboard&#039;) updateSellerStats(); }\nfunction updateGlobalCounters() { document.getElementById(&#039;totalSellersSpan&#039;).innerText = sellers.length; document.getElementById(&#039;totalProductsSpan&#039;).innerText = products.length; }\nfunction updateNicheSelect() { let sel = document.getElementById(&#039;sellerNicheSelect&#039;); sel.innerHTML = &#039;&lt;option&gt;-- Choose Niche --&lt;\/option&gt;&#039;; allNiches.forEach(n =&gt; { let opt = document.createElement(&#039;option&#039;); opt.value = n; opt.textContent = n; sel.appendChild(opt); }); }\nfunction filterNicheGrid(){ renderNicheGrid(); }\nfunction filterSellersList(){ renderAllSellers(); }\n\nconst dropZone = document.getElementById(&#039;productDropZone&#039;), fileInput = document.getElementById(&#039;productFileInput&#039;);\ndropZone.addEventListener(&#039;click&#039;, () =&gt; fileInput.click());\nfileInput.addEventListener(&#039;change&#039;, e =&gt; { Array.from(e.target.files).filter(f=&gt;f.type.startsWith(&#039;image\/&#039;)).forEach(f=&gt;{ let r=new FileReader(); r.onload=ev=&gt;{ pendingImages.push(ev.target.result); renderPreviews(); }; r.readAsDataURL(f); }); });\ndropZone.addEventListener(&#039;dragover&#039;, e=&gt;{ e.preventDefault(); dropZone.classList.add(&#039;drag-over&#039;); });\ndropZone.addEventListener(&#039;dragleave&#039;, ()=&gt;dropZone.classList.remove(&#039;drag-over&#039;));\ndropZone.addEventListener(&#039;drop&#039;, e=&gt;{ e.preventDefault(); dropZone.classList.remove(&#039;drag-over&#039;); Array.from(e.dataTransfer.files).filter(f=&gt;f.type.startsWith(&#039;image\/&#039;)).forEach(f=&gt;{ let r=new FileReader(); r.onload=ev=&gt;{ pendingImages.push(ev.target.result); renderPreviews(); }; r.readAsDataURL(f); }); });\n\ngenerateData(); loadCart(); updateNicheSelect(); toggleFreeShipping(); toggleProductTypeFields();\nwindow.showView = showView; window.addToCart = addToCart; window.removeCartItem = removeCartItem; window.showNicheProducts = showNicheProducts; window.showSellerStore = showSellerStore; window.filterNicheGrid = filterNicheGrid; window.filterSellersList = filterSellersList; window.openCheckoutModal = openCheckoutModal; window.closeCheckoutModal = closeCheckoutModal; window.processSecurePayment = processSecurePayment; window.registerStore = registerStore; window.publishProduct = publishProduct; window.deleteProduct = deleteProduct; window.requestFreeWebsite = requestFreeWebsite; window.claimSponsoredPost = claimSponsoredPost; window.claimRadioAd = claimRadioAd; window.addShippingRule = addShippingRule; window.removeShippingRule = removeShippingRule; window.toggleFreeShipping = toggleFreeShipping; window.toggleProductTypeFields = toggleProductTypeFields; window.removeImg = removeImg; window.updateShippingCostForCart = updateShippingCostForCart; window.applyAdvancedSearch = applyAdvancedSearch; window.resetSearch = resetSearch;\n&lt;\/script&gt;\n\n&lt;script&gt;\n(function () {\n    function sendMarketplaceHeight() {\n        var height = Math.max(\n            document.body ? document.body.scrollHeight : 0,\n            document.documentElement ? document.documentElement.scrollHeight : 0\n        );\n        if (window.parent &amp;&amp; window.parent !== window) {\n            window.parent.postMessage({\n                type: &#039;mpp-marketplace-resize&#039;,\n                height: height\n            }, &#039;*&#039;);\n        }\n    }\n\n    window.addEventListener(&#039;load&#039;, sendMarketplaceHeight);\n    window.addEventListener(&#039;resize&#039;, sendMarketplaceHeight);\n    document.addEventListener(&#039;click&#039;, function () {\n        setTimeout(sendMarketplaceHeight, 80);\n    });\n    document.addEventListener(&#039;input&#039;, function () {\n        setTimeout(sendMarketplaceHeight, 80);\n    });\n    setInterval(sendMarketplaceHeight, 1000);\n})();\n&lt;\/script&gt;\n&lt;\/body&gt;\n\n&lt;\/html&gt;\"\n        title=\"Marketplace Platform\"\n        loading=\"lazy\"\n        scrolling=\"no\"\n        allow=\"clipboard-write\"\n    ><\/iframe>\n<\/div>\n\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-20676","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/pages\/20676","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/comments?post=20676"}],"version-history":[{"count":2,"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/pages\/20676\/revisions"}],"predecessor-version":[{"id":20678,"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/pages\/20676\/revisions\/20678"}],"wp:attachment":[{"href":"https:\/\/marketplace-marketplace.com\/index.php\/wp-json\/wp\/v2\/media?parent=20676"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}