/* پنل فروشنده دراپشیپینگ */

.sdrop-panel {
	--sdp-brand: #1f4d3a;
	--sdp-bg: #f6f7f5;
	--sdp-line: #e6e8e4;
	--sdp-muted: #7b857f;
	direction: rtl;
	font-family: Vazirmatn, IRANSans, IRANYekan, Tahoma, sans-serif;
	color: #1c211e;
	font-size: 14px;
	line-height: 1.9;
	background: var(--sdp-bg);
	border-radius: 18px;
	padding: 16px;
}

.sdrop-panel * { box-sizing: border-box; }
.sdrop-panel a { color: inherit; text-decoration: none; }
.sdrop-panel img { max-width: 100%; height: auto; }

/* Topbar */

.sdp-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--sdp-line);
	border-radius: 16px;
	padding: 12px 16px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.sdp-topbar-brand { display: flex; align-items: center; gap: 12px; }
.sdp-topbar-brand strong { display: block; font-size: 15px; }
.sdp-store-link { font-size: 12px; color: var(--sdp-muted); }

.sdp-logo {
	width: 44px;
	height: 44px;
	border-radius: 14px;
	overflow: hidden;
	background: var(--sdp-brand);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	flex: 0 0 auto;
}
.sdp-logo img { width: 100%; height: 100%; object-fit: cover; }

.sdp-topbar-actions { display: flex; align-items: center; gap: 10px; }

.sdp-bell { position: relative; font-size: 20px; }
.sdp-bell i {
	position: absolute;
	top: -4px;
	inset-inline-start: -6px;
	background: #c0392b;
	color: #fff;
	font-size: 11px;
	font-style: normal;
	border-radius: 999px;
	padding: 0 5px;
	min-width: 18px;
	text-align: center;
}

/* Layout */

.sdp-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }

.sdp-nav {
	background: #fff;
	border: 1px solid var(--sdp-line);
	border-radius: 16px;
	padding: 8px;
	align-self: start;
	position: sticky;
	top: 16px;
}

.sdp-nav-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 12px;
	font-size: 14px;
	position: relative;
}
.sdp-nav-item:hover { background: #f2f4f1; }
.sdp-nav-item.is-active { background: var(--sdp-brand); color: #fff; }
.sdp-nav-icon { font-size: 16px; }
.sdp-nav-badge {
	margin-inline-start: auto;
	background: #c0392b;
	color: #fff;
	font-size: 11px;
	font-style: normal;
	border-radius: 999px;
	padding: 0 6px;
}

.sdp-content { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Cards */

.sdp-card {
	background: #fff;
	border: 1px solid var(--sdp-line);
	border-radius: 16px;
	padding: 18px;
}
.sdp-card h3 { margin: 0 0 12px; font-size: 16px; }
.sdp-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sdp-head-row h3 { margin: 0; }
.sdp-subtitle { margin: 20px 0 10px; font-size: 14px; color: var(--sdp-muted); }

.sdp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.sdp-stat {
	background: #fff;
	border: 1px solid var(--sdp-line);
	border-radius: 16px;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.sdp-stat span { font-size: 12px; color: var(--sdp-muted); }
.sdp-stat strong { font-size: 20px; }
.sdp-stat small { font-size: 12px; color: var(--sdp-muted); }

.sdp-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; }

.sdp-chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.sdp-bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.sdp-bar { width: 100%; background: var(--sdp-brand); border-radius: 6px 6px 0 0; min-height: 4px; opacity: .85; }
.sdp-bar-wrap span { font-size: 10px; color: var(--sdp-muted); white-space: nowrap; }

.sdp-list { list-style: none; margin: 0; padding: 0; }
.sdp-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #f0f2ee; flex-wrap: wrap; }
.sdp-list li small { width: 100%; color: var(--sdp-muted); font-size: 12px; }

.sdp-def { list-style: none; margin: 0; padding: 0; }
.sdp-def li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f0f2ee; }
.sdp-def span { color: var(--sdp-muted); }
.sdp-def b { text-align: left; }

.sdp-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.sdp-col-2 { grid-column: 1 / -1; }

/* Tables */

.sdp-table-wrap { overflow-x: auto; }
.sdp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sdp-table th, .sdp-table td { padding: 10px 8px; text-align: right; border-bottom: 1px solid #f0f2ee; white-space: nowrap; }
.sdp-table th { color: var(--sdp-muted); font-weight: 500; }
.sdp-table td { vertical-align: middle; }
.sdp-td-thumb img { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
.sdp-table-products td:nth-child(2) { white-space: normal; min-width: 200px; }

.sdp-green { color: #1f7a4d; }
.sdp-red { color: #c0392b; }
.sdp-danger { color: #c0392b; }

.sdp-status { border-radius: 999px; padding: 2px 10px; font-size: 12px; background: #f0f2ee; display: inline-block; }
.sdp-status-completed, .sdp-status-paid { background: #e4f5ec; color: #1f7a4d; }
.sdp-status-processing, .sdp-status-approved { background: #e6effa; color: #24557f; }
.sdp-status-cancelled, .sdp-status-failed, .sdp-status-refunded, .sdp-status-rejected { background: #fdecec; color: #a3282a; }
.sdp-status-on-hold, .sdp-status-pending, .sdp-status-requested { background: #fdf3e2; color: #8a6116; }

.sdp-tag { font-size: 11px; background: #f0f2ee; border-radius: 999px; padding: 2px 8px; display: inline-block; font-style: normal; }
.sdp-tag-green { background: #e4f5ec; color: #1f7a4d; }
.sdp-tag-red { background: #fdecec; color: #a3282a; }
.sdp-tag-gray { background: #edeeeb; color: #6c756f; }

/* Forms */

.sdp-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.sdp-field label { font-size: 13px; color: var(--sdp-muted); }
.sdp-field input[type="text"],
.sdp-field input[type="password"],
.sdp-field input[type="search"],
.sdp-field input[type="number"],
.sdp-field textarea,
.sdp-field select,
.sdp-filters input,
.sdp-filters select,
.sdp-payout-form input {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #dfe3dd;
	border-radius: 12px;
	font: inherit;
	background: #fff;
	color: inherit;
}
.sdp-field input[readonly] { background: #f6f7f5; color: var(--sdp-muted); }
.sdp-check { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; }

.sdp-price-input { width: 130px !important; padding: 8px 10px !important; border: 1px solid #dfe3dd; border-radius: 10px; font: inherit; text-align: center; }
.sdp-price-input.is-invalid { border-color: #c0392b; background: #fdecec; }

.sdp-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sdp-filters input, .sdp-filters select { width: auto; min-width: 160px; }

.sdp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border: 0;
	border-radius: 12px;
	padding: 11px 20px;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: .15s;
}
.sdp-btn-primary { background: var(--sdp-brand); color: #fff; }
.sdp-btn-primary:hover { filter: brightness(1.08); }
.sdp-btn-ghost { background: #f2f4f1; color: #1c211e; }
.sdp-btn-sm { padding: 7px 14px; font-size: 13px; }
.sdp-btn-block { width: 100%; }

.sdp-alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; }
.sdp-alert-success { background: #e4f5ec; color: #1f7a4d; }
.sdp-alert-error { background: #fdecec; color: #a3282a; }

.sdp-empty { text-align: center; padding: 32px; color: var(--sdp-muted); border: 1px dashed #dfe3dd; border-radius: 14px; }
.sdp-muted { color: var(--sdp-muted); font-size: 13px; }
.sdp-center { text-align: center; }
.sdp-link { color: var(--sdp-brand); text-decoration: underline; }
.sdp-back { display: inline-block; margin-bottom: 10px; color: var(--sdp-muted); font-size: 13px; }

/* Catalog */

.sdp-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.sdp-cat-card {
	background: #fff;
	border: 1px solid var(--sdp-line);
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	cursor: pointer;
	position: relative;
	transition: .15s;
}
.sdp-cat-card:hover { border-color: var(--sdp-brand); }
.sdp-cat-card input { position: absolute; top: 10px; inset-inline-end: 10px; width: 18px; height: 18px; z-index: 2; }
.sdp-cat-card.is-added { opacity: .65; }
.sdp-cat-media { display: block; aspect-ratio: 1/1; background: #f2f4f1; }
.sdp-cat-media img { width: 100%; height: 100%; object-fit: cover; }
.sdp-cat-body { padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sdp-cat-prices { display: flex; flex-direction: column; font-size: 12px; color: var(--sdp-muted); }
.sdp-cat-prices b { color: #1c211e; }

.sdp-sticky-actions {
	position: sticky;
	bottom: 0;
	background: rgba(255,255,255,.95);
	border: 1px solid var(--sdp-line);
	border-radius: 14px;
	padding: 12px;
	margin-top: 14px;
	text-align: center;
}

/* Wallet */

.sdp-wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.sdp-wallet { border: 1px solid var(--sdp-line); border-radius: 14px; padding: 14px; background: #fbfcfa; }
.sdp-wallet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sdp-wallet-head small { font-size: 11px; color: var(--sdp-muted); }
.sdp-wallet-amount { font-size: 22px; font-weight: 700; color: var(--sdp-brand); margin: 8px 0; }
.sdp-wallet-meta { list-style: none; margin: 0 0 10px; padding: 0; font-size: 12px; color: var(--sdp-muted); }
.sdp-payout-form { display: flex; flex-direction: column; gap: 8px; }

/* Product edit */

.sdp-product-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.sdp-product-thumb img { width: 90px; height: 90px; object-fit: cover; border-radius: 12px; }
.sdp-product-head h3 { margin: 0 0 4px; }
.sdp-logo-row { display: flex; align-items: center; gap: 12px; }

/* Trust */

.sdp-trust-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.sdp-trust-head h3 { margin: 0 0 4px; }
.sdp-trust-mark { flex: 0 0 auto; display: flex; }
.sdp-trust-score { margin-inline-start: auto; text-align: center; background: #fbfaf6; border: 1px solid #e2dcc9; border-radius: 14px; padding: 10px 18px; }
.sdp-trust-score strong { display: block; font-size: 26px; color: #1f4d3a; line-height: 1.2; }
.sdp-trust-score small { display: block; font-size: 11px; color: #8a8574; margin-top: 2px; }
.sdp-trust-msg { white-space: normal; min-width: 260px; max-width: 420px; }

.sdp-stars { display: inline-flex; align-items: center; gap: 2px; }
.sdp-content .sdrop-stars { display: inline-flex; align-items: center; gap: 2px; }
.sdp-content .sdrop-star { position: relative; display: inline-flex; line-height: 0; }
.sdp-content .sdrop-star svg { fill: #e2e5df; }
.sdp-content .sdrop-star-fill { position: absolute; top: 0; right: 0; overflow: hidden; line-height: 0; }
.sdp-content .sdrop-star-fill svg { fill: #e0a83c; }

/* Notifications */

.sdp-notifs { list-style: none; margin: 0; padding: 0; }
.sdp-notifs li { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px; border-radius: 12px; border-bottom: 1px solid #f0f2ee; }
.sdp-notifs li.is-unread { background: #f4f8f5; }
.sdp-notif-body p { margin: 2px 0; color: var(--sdp-muted); font-size: 13px; }
.sdp-notif-body small { color: #9aa39d; font-size: 11px; }

/* Pagination */

.sdp-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.sdp-page { background: #fff; border: 1px solid #dfe3dd; border-radius: 10px; padding: 5px 12px; font-size: 13px; }
.sdp-page.is-active { background: var(--sdp-brand); color: #fff; border-color: transparent; }

/* Login */

.sdp-login-wrap { display: flex; justify-content: center; padding: 32px 16px; }
.sdp-login { background: #fff; border: 1px solid var(--sdp-line); border-radius: 18px; padding: 28px; max-width: 400px; width: 100%; }
.sdp-login h2 { margin: 0 0 8px; font-size: 20px; }

@media (max-width: 860px) {
	.sdp-body { grid-template-columns: 1fr; }
	.sdp-nav { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
	.sdp-cols { grid-template-columns: 1fr; }
}
