/**
 * Afoomart Seller Center & Multi-Vendor Stylesheet
 *
 * Designed with Afoomart Design Tokens:
 * Brand Red: #DE2C27 | Dark Navy: #0A192F | Slate Background: #F8FAFC
 * Inter Typography & High-Contrast Micro-Interactions
 *
 * @package Afoomart
 */

/* ==========================================================================
   1. Master Layout & Wrappers
   ========================================================================== */
.af-sc-wrapper {
	background-color: #F8FAFC;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #1E293B;
}

.af-sc-layout {
	display: flex;
	flex: 1;
	min-height: calc(100vh - 64px);
}

/* ==========================================================================
   2. Top Bar Navigation
   ========================================================================== */
.af-sc-topbar {
	height: 64px;
	background-color: #0A192F;
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.af-sc-topbar-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.af-sc-brand-link {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #FFFFFF;
}

.af-sc-brand-link img,
.af-sc-logo-img {
	height: 28px !important;
	max-height: 28px !important;
	width: auto !important;
	max-width: 140px !important;
	object-fit: contain !important;
	display: block !important;
}

.af-sc-badge-seller {
	background-color: #DE2C27;
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	padding: 3px 8px;
	border-radius: 4px;
}

.af-sc-menu-toggle {
	display: none;
	background: transparent;
	border: none;
	color: #FFFFFF;
	cursor: pointer;
	padding: 4px;
}

.af-sc-topbar-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

.af-sc-store-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #94A3B8;
	font-size: 13px;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 6px;
	transition: all 0.2s;
}

.af-sc-store-link:hover {
	color: #FFFFFF;
	background: rgba(255, 255, 255, 0.06);
}

.af-sc-user-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, 0.06);
	padding: 4px 12px 4px 6px;
	border-radius: 30px;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.af-sc-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: linear-gradient(135deg, #DE2C27, #FF5722);
	color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 14px;
}

.af-sc-user-meta {
	display: flex;
	flex-direction: column;
}

.af-sc-store-name {
	font-size: 13px;
	font-weight: 600;
	color: #FFFFFF;
	line-height: 1.2;
}

.af-sc-verified-tag {
	font-size: 10px;
	color: #10B981;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.af-sc-logout-btn {
	color: #94A3B8;
	display: flex;
	align-items: center;
	margin-left: 4px;
	transition: color 0.2s;
}

.af-sc-logout-btn:hover {
	color: #DE2C27;
}

/* ==========================================================================
   3. Sidebar Navigation
   ========================================================================== */
.af-sc-sidebar {
	width: 260px;
	background: #0D1F38;
	color: #94A3B8;
	padding: 24px 16px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-right: 1px solid rgba(255, 255, 255, 0.05);
	flex-shrink: 0;
}

.af-sc-nav-heading {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #64748B;
	margin-bottom: 12px;
	padding-left: 12px;
}

.af-sc-nav-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.af-sc-nav-link {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 14px;
	color: #CBD5E1;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	border-radius: 8px;
	transition: all 0.2s;
}

.af-sc-nav-link:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #FFFFFF;
}

.af-sc-nav-link.active {
	background: #DE2C27;
	color: #FFFFFF;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(222, 44, 39, 0.3);
}

.af-sc-nav-badge {
	margin-left: auto;
	background: rgba(255, 255, 255, 0.2);
	color: #FFFFFF;
	font-size: 10px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 4px;
}

.af-sc-support-card {
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 16px;
	text-align: center;
}

.af-sc-support-icon {
	font-size: 24px;
	margin-bottom: 6px;
}

.af-sc-support-title {
	font-size: 13px;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 2px;
}

.af-sc-support-desc {
	font-size: 11px;
	color: #94A3B8;
	margin-bottom: 10px;
}

.af-sc-support-btn {
	display: inline-block;
	background: #10B981;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 6px;
	transition: opacity 0.2s;
}

.af-sc-support-btn:hover {
	opacity: 0.9;
}

/* ==========================================================================
   4. Main Content Area & Views
   ========================================================================== */
.af-sc-main {
	flex: 1;
	padding: 32px 36px;
	overflow-y: auto;
}

.af-sc-content-container {
	max-width: 1200px;
	margin: 0 auto;
}

.af-sc-view-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 28px;
	gap: 16px;
	flex-wrap: wrap;
}

.af-sc-view-title {
	font-size: 24px;
	font-weight: 800;
	color: #0A192F;
	margin: 0 0 4px 0;
}

.af-sc-view-subtitle {
	font-size: 14px;
	color: #64748B;
	margin: 0;
	max-width: 680px;
}

/* ==========================================================================
   5. Cards & KPI Metrics
   ========================================================================== */
.af-sc-kpi-grid,
.af-sc-payout-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	margin-bottom: 28px;
}

.af-sc-kpi-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.af-sc-kpi-icon {
	width: 48px;
	height: 48px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.af-sc-kpi-meta {
	display: flex;
	flex-direction: column;
}

.af-sc-kpi-label {
	font-size: 12px;
	font-weight: 600;
	color: #64748B;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.af-sc-kpi-value {
	font-size: 24px;
	font-weight: 800;
	color: #0A192F;
	line-height: 1.2;
	margin: 4px 0 2px 0;
}

.af-sc-kpi-subtext {
	font-size: 12px;
	color: #64748B;
}

.af-sc-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.af-sc-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 12px;
}

.af-sc-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #0A192F;
	margin: 0;
}

.af-sc-card-subtitle {
	font-size: 13px;
	color: #64748B;
}

/* ==========================================================================
   6. Data Tables & Status Pills
   ========================================================================== */
.af-sc-table-responsive {
	overflow-x: auto;
}

.af-sc-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 14px;
}

.af-sc-table th {
	background: #F8FAFC;
	color: #475569;
	font-weight: 600;
	padding: 12px 16px;
	border-bottom: 2px solid #E2E8F0;
	white-space: nowrap;
}

.af-sc-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #F1F5F9;
	vertical-align: middle;
}

.af-sc-table tbody tr:hover {
	background: #F8FAFC;
}

.af-sc-status-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
}

.af-status-completed, .af-status-delivered, .af-status-approved {
	background: rgba(16, 185, 129, 0.12);
	color: #047857;
}

.af-status-processing, .af-status-packed {
	background: rgba(59, 130, 246, 0.12);
	color: #1D4ED8;
}

.af-status-dispatched {
	background: rgba(245, 158, 11, 0.12);
	color: #B45309;
}

.af-status-cancelled, .af-status-suspended {
	background: rgba(239, 68, 68, 0.12);
	color: #B91C1C;
}

.af-sc-sale-badge {
	font-size: 11px;
	background: rgba(222, 44, 39, 0.1);
	color: #DE2C27;
	padding: 2px 6px;
	border-radius: 4px;
	margin-left: 4px;
}

/* ==========================================================================
   7. Order Fulfillment Cards
   ========================================================================== */
.af-sc-orders-stack {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.af-sc-order-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
	overflow: hidden;
}

.af-sc-order-card-header {
	padding: 16px 20px;
	background: #F8FAFC;
	border-bottom: 1px solid #E2E8F0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.af-sc-order-id {
	font-weight: 800;
	color: #0A192F;
	font-size: 16px;
	margin-right: 8px;
}

.af-sc-order-date {
	font-size: 13px;
	color: #64748B;
}

.af-sc-order-body {
	padding: 20px;
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 24px;
}

.af-sc-items-list {
	list-style: none;
	padding: 0;
	margin: 8px 0;
}

.af-sc-items-list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px dashed #E2E8F0;
	font-size: 13px;
}

.af-sc-item-qty {
	font-weight: 700;
	color: #DE2C27;
	margin-right: 8px;
}

.af-sc-order-grand-total {
	display: flex;
	justify-content: space-between;
	font-size: 15px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 2px solid #E2E8F0;
}

.af-sc-order-actions {
	padding: 12px 20px;
	background: #F1F5F9;
	border-top: 1px solid #E2E8F0;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.af-sc-actions-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	color: #475569;
	margin-right: 8px;
}

/* ==========================================================================
   8. Buyer Requests / RFQ Grid
   ========================================================================== */
.af-sc-rfq-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
	gap: 24px;
}

.af-sc-rfq-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
	transition: transform 0.2s, box-shadow 0.2s;
}

.af-sc-rfq-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.af-sc-rfq-top {
	display: flex;
	justify-content: space-between;
	margin-bottom: 12px;
}

.af-sc-rfq-cat {
	background: rgba(10, 25, 47, 0.08);
	color: #0A192F;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
}

.af-sc-rfq-time {
	font-size: 12px;
	color: #94A3B8;
}

.af-sc-rfq-title {
	font-size: 16px;
	font-weight: 700;
	color: #0A192F;
	margin: 0 0 8px 0;
	line-height: 1.3;
}

.af-sc-rfq-desc {
	font-size: 13px;
	color: #64748B;
	margin: 0 0 16px 0;
	line-height: 1.5;
}

.af-sc-rfq-details {
	display: flex;
	justify-content: space-between;
	background: #F8FAFC;
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 16px;
}

.af-sc-rfq-detail-item {
	display: flex;
	flex-direction: column;
}

.af-sc-rfq-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 12px;
	border-top: 1px solid #F1F5F9;
}

/* ==========================================================================
   9. Photo Uploader Box
   ========================================================================== */
.af-sc-upload-box {
	border: 2px dashed #CBD5E1;
	border-radius: 12px;
	padding: 24px;
	text-align: center;
	cursor: pointer;
	background: #F8FAFC;
	transition: all 0.2s;
}

.af-sc-upload-box:hover {
	border-color: #DE2C27;
	background: rgba(222, 44, 39, 0.02);
}

.af-sc-upload-icon {
	font-size: 36px;
	margin-bottom: 8px;
}

/* ==========================================================================
   10. Modals
   ========================================================================== */
.af-sc-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.af-sc-modal-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(10, 25, 47, 0.6);
	backdrop-filter: blur(4px);
}

.af-sc-modal-dialog {
	position: relative;
	background: #FFFFFF;
	width: 90%;
	max-width: 520px;
	border-radius: 16px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	z-index: 2;
	animation: afModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes afModalPop {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

.af-sc-modal-header {
	padding: 16px 20px;
	background: #F8FAFC;
	border-bottom: 1px solid #E2E8F0;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.af-sc-modal-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: #0A192F;
}

.af-sc-modal-close {
	background: transparent;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #94A3B8;
}

.af-sc-modal-close:hover {
	color: #DE2C27;
}

.af-sc-modal-body {
	padding: 20px;
}

.af-sc-modal-footer {
	padding: 16px 20px;
	background: #F8FAFC;
	border-top: 1px solid #E2E8F0;
	display: flex;
	justify-content: flex-end;
}

/* ==========================================================================
   11. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
	.af-sc-order-body {
		grid-template-columns: 1fr;
	}
	.af-sc-sidebar {
		position: fixed;
		top: 64px;
		left: -280px;
		height: calc(100vh - 64px);
		z-index: 99;
		transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	}
	.af-sc-sidebar.open {
		left: 0;
		box-shadow: 10px 0 30px rgba(0, 0, 0, 0.3);
	}
	.af-sc-menu-toggle {
		display: inline-flex;
	}
	.af-sc-main {
		padding: 24px 16px;
	}
}

/* ==========================================================================
   12. Product Type Selector & Variation Configurator
   ========================================================================== */
.af-sc-type-selector {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 6px;
}

@media (max-width: 768px) {
	.af-sc-type-selector {
		grid-template-columns: 1fr;
	}
}

.af-sc-type-card {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px;
	background: #FFFFFF;
	border: 2px solid #E2E8F0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.af-sc-type-card input[type="radio"] {
	margin-top: 4px;
	cursor: pointer;
	accent-color: #DE2C27;
}

.af-sc-type-card:hover {
	border-color: #CBD5E1;
	background: #F8FAFC;
}

.af-sc-type-card.active {
	border-color: #DE2C27;
	background: rgba(222, 44, 39, 0.03);
}

.af-sc-type-info {
	display: flex;
	flex-direction: column;
}

.af-sc-type-icon {
	font-size: 20px;
	margin-bottom: 4px;
}

.af-sc-type-title {
	font-size: 14px;
	font-weight: 700;
	color: #0A192F;
}

.af-sc-type-desc {
	font-size: 12px;
	color: #64748B;
	margin-top: 2px;
	line-height: 1.4;
}

.af-sc-btn-link {
	background: none;
	border: none;
	color: #DE2C27;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	padding: 0;
	transition: color 0.2s;
}

.af-sc-btn-link:hover {
	color: #B91C1C;
	text-decoration: underline;
}

/* Variation Configurator Card */
.af-sc-var-builder-card {
	background: #F8FAFC;
	border: 1px solid #E2E8F0;
	border-radius: 12px;
	padding: 24px;
	margin-top: 8px;
}

.af-sc-var-title {
	font-size: 16px;
	font-weight: 800;
	color: #0A192F;
	margin: 0 0 4px 0;
}

.af-sc-var-subtitle {
	font-size: 13px;
	color: #64748B;
	margin: 0 0 16px 0;
}

.af-sc-attr-block {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 16px;
}

.af-sc-attr-title {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #0A192F;
	margin-bottom: 10px;
}

.af-sc-pills-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.af-sc-pill {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 20px;
	background: #F1F5F9;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	border: 1px solid #CBD5E1;
	user-select: none;
	transition: all 0.2s ease;
}

.af-sc-pill:hover {
	background: #E2E8F0;
	color: #0F172A;
}

.af-sc-pill.selected {
	background: #0A192F;
	color: #FFFFFF;
	border-color: #0A192F;
	box-shadow: 0 2px 6px rgba(10, 25, 47, 0.25);
}

.af-sc-custom-attr-input {
	display: flex;
	gap: 8px;
	max-width: 320px;
}

.af-sc-generator-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.af-sc-bulk-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	background: #FFFFFF;
	border: 1px dashed #CBD5E1;
	border-radius: 8px;
	padding: 12px 16px;
	flex-wrap: wrap;
}

.af-sc-bulk-label {
	font-size: 13px;
	font-weight: 700;
	color: #0A192F;
}

.af-sc-bulk-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.af-btn-icon {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 4px 8px;
	font-size: 14px;
	border-radius: 4px;
	transition: background 0.2s, color 0.2s;
}

.af-btn-icon:hover {
	background: rgba(222, 44, 39, 0.1);
	color: #DE2C27;
}

.af-var-row td {
	padding: 8px 10px;
}
