/**
 * MarketKing Frontend Vendor Dashboard & Storefront Styles
 */
.marketking-dashboard-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #0e1726;
}
.mk-dash-topbar {
    background: #0e1726;
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mk-store-badge { display: flex; align-items: center; gap: 12px; }
.mk-crown-icon { font-size: 24px; }
.mk-store-title { color: #ffffff; margin: 0; font-size: 18px; font-weight: 700; }
.mk-status-pill.verified {
    background: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}
.mk-wallet-balance { font-size: 14px; margin-right: 14px; color: #cbd5e1; }
.mk-wallet-balance strong { color: #34d399; font-size: 16px; }
.mk-btn-action { background: #334155; color: #ffffff; padding: 6px 12px; border-radius: 6px; text-decoration: none; font-size: 12px; font-weight: 600; }
.mk-dash-container { display: flex; min-height: 520px; }
.mk-dash-sidebar { width: 230px; background: #ffffff; border-right: 1px solid #e2e8f0; padding: 16px 0; }
.mk-nav-list { list-style: none; margin: 0; padding: 0; }
.mk-nav-list li a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; color: #475569; text-decoration: none; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.mk-nav-list li.active a, .mk-nav-list li a:hover { background: #eff6ff; color: #4361ee; border-left: 4px solid #4361ee; }
.mk-dash-main { flex: 1; padding: 24px; }
.mk-metrics-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.mk-kpi-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; }
.kpi-label { font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 600; display: block; }
.kpi-value { font-size: 22px; font-weight: 800; color: #0e1726; display: block; margin: 4px 0; }
.kpi-sub { font-size: 11px; color: #64748b; }
.kpi-sub.green { color: #10b981; font-weight: 600; }
.mk-section-box { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 20px; }
.mk-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.mk-section-header h3 { margin: 0; font-size: 15px; font-weight: 700; color: #0e1726; }
.mk-btn-primary { background: #4361ee; color: #ffffff; border: none; padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-block; }
.mk-btn-primary:hover { background: #3b82f6; }
.mk-btn-sm { padding: 4px 10px; font-size: 11px; }
.mk-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mk-table th, .mk-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #f1f5f9; }
.mk-badge { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.mk-badge.processing { background: #fef3c7; color: #b45309; }
.mk-badge.completed { background: #dcfce7; color: #15803d; }
.mk-badge.published { background: #e0e7ff; color: #4338ca; }
.mk-stock-in { color: #10b981; font-weight: 600; }

/* Vendors Directory */
.marketking-vendors-directory { padding: 20px 0; }
.mk-dir-header { text-align: center; margin-bottom: 30px; }
.mk-search-bar input { width: 100%; max-width: 480px; padding: 12px 18px; border: 1px solid #cbd5e1; border-radius: 9999px; font-size: 14px; }
.mk-vendor-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mk-vendor-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.04); }
.mk-card-cover { height: 90px; position: relative; padding: 10px; text-align: right; }
.mk-card-body { padding: 18px; text-align: center; margin-top: -36px; }
.mk-vendor-avatar { width: 56px; height: 56px; background: #ffffff; border: 2px solid #e2e8f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 10px; }
.mk-card-rating { font-size: 12px; color: #d97706; font-weight: 700; margin: 4px 0 10px; }
.mk-card-bio { font-size: 12px; color: #64748b; line-height: 1.5; margin-bottom: 14px; }
.mk-btn-block { display: block; width: 100%; text-align: center; box-sizing: border-box; }

/* SPMV Buy Box */
.marketking-spmv-container { margin: 24px 0; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.mk-spmv-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mk-spmv-badge { background: #ecfdf5; color: #059669; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; }
.mk-spmv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mk-spmv-table th, .mk-spmv-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; text-align: left; }
.mk-winner-tag { display: block; font-size: 10px; color: #b45309; font-weight: 700; }
.mk-price { font-size: 16px; font-weight: 800; color: #10b981; }
