@import url('../../assets/vendor/google-fonts-admin.css');

:root {
    /* Premium Light Theme based on Yarn Branding */
    --c-bg: #fdfbf7;
    --c-surface: #ffffff;
    --c-border: #eeddc9;
    --c-text: #4a4036;
	--c-text-muted: #6f5e50;
	--c-primary: #ad463a;
	--c-primary-hover: #92392f;
	--c-primary-light: rgba(173, 70, 58, 0.1);
    
	--c-success: #087f5b;
	--c-warning: #945d00;
	--c-danger: #b42318;
    
    --shadow-sm: 0 1px 2px rgba(92, 77, 67, 0.05);
    --shadow-md: 0 4px 6px rgba(92, 77, 67, 0.05), 0 1px 3px rgba(92, 77, 67, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(92, 77, 67, 0.1), 0 4px 6px -2px rgba(92, 77, 67, 0.05);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --sidebar-width: 260px;
    --header-height: 70px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ops-auth-layout {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 24px;
}

.ops-auth-layout .storefront_ops_auth_stage {
	width: min(100%, 480px);
	margin: 0;
}

.seller-settings-form .form-group {
	margin: 0;
}

.seller-settings-card,
.seller-settings-team-card,
.seller-settings-document-card,
.seller-settings-logout {
	padding: 24px;
}

.seller-file-picker {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	min-height: 42px;
}

.seller-file-picker-name {
	color: var(--c-text-muted);
	overflow-wrap: anywhere;
}

.seller-file-picker-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.seller-file-picker input:focus-visible + .seller-file-picker-button {
	outline: 3px solid var(--c-primary);
	outline-offset: 2px;
}

.seller-communication-page {
	min-width: 0;
}

.seller-communication-header {
	margin-bottom: 20px;
}

.seller-communication-header p,
.seller-communication-section-heading p {
	margin-top: 6px;
	color: var(--c-text-muted);
}

.seller-communication-tabs {
	margin-bottom: 20px;
}

.seller-communication-tabs .tab-btn {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 10px 16px;
}

.seller-communication-message {
	margin-bottom: 20px;
}

.seller-communication-message > .view_section,
.seller-communication-message .storefront_alert {
	margin: 0;
}

.seller-communication-panel,
.seller-communication-section,
.seller-communication-stack {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.seller-communication-section-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.35;
}

.seller-communication-filter-tabs {
	width: fit-content;
	max-width: 100%;
	margin-bottom: 0;
}

.seller-communication-filter-tabs .tab-btn {
	min-height: 44px;
	padding: 8px 12px;
}

.admin-content .storefront_pagination_link {
	min-width: 44px;
	min-height: 44px;
}

.seller-communication-card {
	padding: 20px;
}

.seller-communication-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.seller-communication-card-header > div {
	min-width: 0;
}

.seller-communication-card h2,
.seller-communication-card h3 {
	margin: 0;
	font-size: 16px;
	line-height: 1.4;
}

.seller-communication-card h2 a,
.seller-communication-card h3 a,
.seller-communication-product a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--c-text);
}

.seller-communication-card h2 a:hover,
.seller-communication-card h3 a:hover,
.seller-communication-product a:hover {
	color: var(--c-primary);
}

.seller-communication-meta,
.seller-communication-product {
	margin-top: 6px;
	color: var(--c-text-muted);
	font-size: 14px;
	line-height: 1.45;
}

.seller-communication-product {
	font-weight: 600;
}

.seller-communication-copy {
	margin-top: 16px;
	color: var(--c-text);
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.seller-communication-answer {
	margin-top: 16px;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	background: var(--c-bg);
}

.seller-communication-answer strong {
	display: block;
	margin-bottom: 6px;
}

.seller-communication-answer p {
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.seller-communication-form,
.seller-communication-card-actions {
	display: flex;
	align-items: flex-end;
	gap: 12px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--c-border);
}

.seller-communication-form {
	align-items: stretch;
	flex-direction: column;
}

.seller-communication-form .form-group {
	margin: 0;
}

.seller-communication-form .form-control {
	min-height: 96px;
}

.seller-communication-form .btn,
.seller-communication-card-actions .btn {
	align-self: flex-start;
}

.seller-communication-card-header .badge {
	flex: 0 0 auto;
}

.seller-communication-empty {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 48px 24px;
	text-align: center;
}

.seller-communication-empty > i {
	color: var(--c-primary);
	font-size: 34px;
}

.seller-communication-empty p {
	max-width: 480px;
	color: var(--c-text-muted);
}

.seller-communication-help h2 {
	font-size: 20px;
}

.seller-communication-help > p {
	margin-top: 8px;
	color: var(--c-text-muted);
	line-height: 1.55;
}

.seller-communication-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

.seller-support-heading {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.seller-support-heading-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--c-primary-light);
	color: var(--c-primary);
	font-size: 24px;
}

.seller-support-heading h2 {
	font-size: 20px;
}

.seller-support-heading p {
	max-width: 680px;
	margin-top: 6px;
	color: var(--c-text-muted);
	line-height: 1.55;
}

.seller-support-form {
	display: grid;
	gap: 18px;
	margin-top: 22px;
	padding-top: 22px;
	border-top: 1px solid var(--c-border);
}

.seller-support-form .form-group {
	margin: 0;
}

.seller-support-form .form-control {
	min-height: 44px;
}

.seller-support-form textarea.form-control {
	min-height: 174px;
	line-height: 1.55;
	resize: vertical;
}

.seller-support-sender {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
}

.seller-support-sender > i {
	color: var(--c-primary);
	font-size: 22px;
}

.seller-support-sender p {
	display: grid;
	gap: 2px;
	margin: 0;
	min-width: 0;
}

.seller-support-sender span {
	color: var(--c-text-muted);
	font-size: 12px;
}

.seller-support-sender strong {
	overflow-wrap: anywhere;
}

.seller-support-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.seller-support-security {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 580px;
	margin: 0;
	color: var(--c-text-muted);
	font-size: 12px;
	line-height: 1.45;
}

.seller-support-security > i {
	flex: 0 0 auto;
	color: var(--c-success);
	font-size: 18px;
}

.seller-support-footer .btn {
	flex: 0 0 auto;
}

@media (max-width: 768px) {
	.seller-communication-filter-tabs {
		margin-right: 0;
		padding-right: 0;
	}

	.seller-communication-card-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 10px;
	}

	.seller-communication-form .btn,
	.seller-communication-card-actions .btn,
	.seller-communication-actions .btn {
		width: 100%;
	}

	.seller-communication-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.seller-support-footer {
		align-items: stretch;
		flex-direction: column;
	}

	.seller-support-footer .btn {
		width: 100%;
	}
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.btn:focus-visible,
.tab-btn:focus-visible,
.form-control:focus-visible,
.seller-orders-more-filters summary:focus-visible,
.nav-link:focus-visible,
.view_badge:focus-visible,
.sidebar-close:focus-visible,
.mobile-menu-toggle:focus-visible,
.seller-communication-card a:focus-visible,
.storefront_order_card_meta a:focus-visible,
.seller-settings-details summary:focus-visible {
	outline: 3px solid var(--c-primary);
	outline-offset: 2px;
}

.seller-orders-header {
	margin-bottom: 20px;
}

.seller-orders-header p {
	margin-top: 6px;
	color: var(--c-text-muted);
}

.seller-orders-tabs {
	margin-bottom: 20px;
}

.seller-orders-tabs .tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
}

.seller-orders-tabs .tab-btn span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 12px;
	background: var(--c-bg);
	color: var(--c-text-muted);
	font-size: 14px;
}

.seller-orders-tabs .tab-btn.active span {
	background: var(--c-primary-light);
	color: var(--c-primary);
}

.seller-orders-controls {
	padding: 20px;
	margin-bottom: 20px;
	overflow: visible;
}

.seller-orders-search {
	display: flex;
	align-items: center;
	gap: 12px;
}

.seller-orders-search .form-control {
	flex: 1;
	min-width: 180px;
	min-height: 44px;
}

.seller-orders-search .btn,
.seller-orders-filter-actions .btn {
	min-height: 44px;
}

.seller-orders-more-filters {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--c-border);
}

.seller-orders-more-filters summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--c-text-muted);
	font-weight: 600;
	cursor: pointer;
}

.seller-orders-more-filters[open] summary {
	margin-bottom: 16px;
	color: var(--c-text);
}

.seller-orders-filter-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.seller-orders-filter-grid .form-group {
	margin-bottom: 0;
}

.seller-orders-filter-grid .form-control {
	min-height: 44px;
}

.seller-orders-filter-actions {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.seller-orders-list {
	margin-bottom: 20px;
}

.seller-orders-table th,
.seller-orders-table td {
	padding: 16px 18px;
}

.seller-orders-table td strong,
.seller-orders-cell-meta {
	display: block;
}

.seller-orders-cell-meta {
	margin-top: 4px;
	color: var(--c-text-muted);
	font-size: 14px;
}

.seller-orders-table td:nth-child(2) {
	max-width: 280px;
}

.seller-orders-open {
	text-align: right;
}

.seller-orders-open .btn {
	min-height: 44px;
	padding: 10px 14px;
	white-space: nowrap;
}

.seller-orders-empty {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 56px 24px;
	text-align: center;
}

.seller-orders-empty > i {
	font-size: 36px;
	color: var(--c-primary);
}

.seller-orders-empty h2 {
	font-size: 18px;
}

.seller-orders-empty p {
	max-width: 480px;
	color: var(--c-text-muted);
}

.seller-orders-empty .btn {
	margin-top: 6px;
}

@media (max-width: 900px) {
	.seller-orders-controls {
		padding: 16px !important;
	}

	.seller-orders-search,
	.seller-orders-filter-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.seller-orders-search .btn,
	.seller-orders-filter-actions .btn {
		width: 100%;
	}

	.seller-orders-filter-grid {
		grid-template-columns: 1fr;
	}

	.seller-orders-list {
		padding: 0 !important;
	}

	.seller-orders-list .table-wrapper {
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.seller-orders-table,
	.seller-orders-table tbody,
	.seller-orders-table tr,
	.seller-orders-table td {
		display: block;
		min-width: 0;
		width: 100%;
	}

	.seller-orders-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.seller-orders-table tr {
		padding: 12px 16px 16px;
		border-bottom: 1px solid var(--c-border);
	}

	.seller-orders-table tr:last-child {
		border-bottom: 0;
	}

	.seller-orders-table td,
	.seller-orders-table td:nth-child(2) {
		max-width: none;
		padding: 8px 0;
		border: 0;
	}

	.seller-orders-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		color: var(--c-text-muted);
		font-size: 14px;
		font-weight: 600;
	}

	.seller-orders-open {
		text-align: left;
	}

	.seller-orders-open::before {
		display: none !important;
	}

	.seller-orders-open .btn {
		width: 100%;
		margin-top: 4px;
	}

	.seller-orders-empty {
		padding: 40px 20px !important;
	}
}

.seller-products-quick summary:focus-visible {
	outline: 3px solid var(--c-primary-light);
	outline-offset: 2px;
}

.seller-products-header {
	margin-bottom: 20px;
}

.seller-products-header p {
	margin-top: 6px;
	color: var(--c-text-muted);
}

.seller-products-header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
}

.seller-products-header-actions .btn {
	min-height: 44px;
}

.seller-import-page {
	max-width: 1040px;
}

.seller-import-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	margin-bottom: 12px;
	color: var(--c-primary);
	font-weight: 600;
}

.seller-import-header {
	margin-bottom: 20px;
}

.seller-import-header p {
	max-width: 680px;
	margin-top: 6px;
	color: var(--c-text-muted);
	line-height: 1.55;
}

.seller-import-card,
.seller-import-jobs {
	padding: 24px;
	margin-bottom: 20px;
}

.seller-import-fields {
	display: grid;
	grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr);
	gap: 18px;
}

.seller-import-fields label > span {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.seller-import-file > legend {
	display: block;
	padding: 0;
	margin-bottom: 8px;
	font-weight: 600;
}

.seller-import-fields .form-control {
	min-height: 46px;
}

.seller-import-fields input[type="file"] {
	padding: 9px 12px;
}

.seller-import-fields > p {
	grid-column: 1 / -1;
	margin: -6px 0 0;
	color: var(--c-text-muted);
	font-size: 14px;
	line-height: 1.5;
}

.seller-import-method {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.seller-import-method[hidden],
.seller-import-payload[hidden] {
	display: none;
}

.seller-import-method legend {
	margin-bottom: 8px;
	font-weight: 600;
}

.seller-import-method-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.seller-import-method-option {
	position: relative;
	min-width: 0;
	cursor: pointer;
}

.seller-import-method-option > span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	color: var(--c-text-muted);
	font-weight: 600;
	line-height: 1.3;
	text-align: center;
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.seller-import-method-option input:checked + span {
	border-color: var(--c-primary);
	background: var(--c-primary-light);
	color: var(--c-primary);
}

.seller-import-method-option input:focus-visible + span {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
}

.seller-import-method-option input:disabled + span {
	opacity: 0.55;
	cursor: not-allowed;
}

.seller-import-payload {
	grid-column: 1 / -1;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.seller-import-url .form-control {
	width: 100%;
}

.seller-import-hint {
	display: block;
	margin: 8px 0 0;
	color: var(--c-text-muted);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.seller-import-noscript {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 16px 0 0;
}

.seller-import-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 20px;
	margin-top: 20px;
	border-top: 1px solid var(--c-border);
}

.seller-import-actions .btn {
	min-height: 44px;
}

.seller-import-page > .view_section {
	padding: 24px;
	margin-bottom: 20px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
}

.seller-import-jobs h2 {
	margin: 0 0 16px;
	font-size: 20px;
}

.seller-import-empty {
	margin: 0;
	color: var(--c-text-muted);
}

.seller-import-table th,
.seller-import-table td {
	padding: 14px 16px;
}

.seller-import-table td:first-child {
	max-width: 280px;
	overflow-wrap: anywhere;
}

.seller-products-tabs {
	margin-bottom: 20px;
}

.seller-products-tabs .tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 16px;
}

.seller-products-tabs .tab-btn span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 12px;
	background: var(--c-bg);
	color: var(--c-text-muted);
	font-size: 14px;
}

.seller-products-tabs .tab-btn.active span {
	background: var(--c-primary-light);
	color: var(--c-primary);
}

.seller-products-controls {
	padding: 20px;
	margin-bottom: 20px;
	overflow: visible;
}

.seller-products-search {
	display: flex;
	align-items: center;
	gap: 12px;
}

.seller-products-search .form-control {
	flex: 1;
	min-width: 180px;
	min-height: 44px;
}

.seller-products-search .btn {
	min-height: 44px;
}

.seller-products-message {
	margin-bottom: 20px;
}

.seller-products-list {
	margin-bottom: 20px;
}

.seller-products-table th,
.seller-products-table td {
	padding: 14px 16px;
}

.seller-product-summary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 240px;
}

.seller-product-summary a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--c-text);
	font-weight: 600;
}

.seller-product-summary a:hover {
	color: var(--c-primary);
}

.seller-product-image,
.seller-product-image-placeholder {
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
}

.seller-product-image {
	object-fit: cover;
}

.seller-product-image-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--c-text-muted);
	font-size: 24px;
}

.seller-products-cell-meta {
	display: block;
	margin-top: 4px;
	color: var(--c-text-muted);
	font-size: 14px;
}

.seller-products-actions {
	min-width: 174px;
	text-align: right;
}

.seller-products-actions > .btn {
	width: 100%;
	min-height: 44px;
	padding: 10px 14px;
}

.seller-products-quick {
	margin-top: 8px;
	text-align: left;
}

.seller-products-quick summary {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--c-text-muted);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.seller-products-quick > div {
	width: 260px;
	padding: 12px;
	margin-top: 6px;
	margin-left: auto;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	box-shadow: var(--shadow-md);
}

.seller-products-quick form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 8px;
}

.seller-products-quick form + form {
	padding-top: 10px;
	margin-top: 10px;
	border-top: 1px solid var(--c-border);
}

.seller-products-quick label span {
	display: block;
	margin-bottom: 4px;
	color: var(--c-text-muted);
	font-size: 14px;
}

.seller-products-quick .form-control,
.seller-products-quick .btn {
	min-height: 44px;
}

.seller-products-quick .btn {
	padding: 8px 10px;
}

.seller-products-empty {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 56px 24px;
	text-align: center;
}

.seller-products-empty > i {
	color: var(--c-primary);
	font-size: 36px;
}

.seller-products-empty h2 {
	font-size: 18px;
}

.seller-products-empty p {
	max-width: 480px;
	color: var(--c-text-muted);
}

.seller-products-empty .btn {
	margin-top: 6px;
}

@media (max-width: 900px) {
	.seller-products-header-actions {
		align-items: stretch;
		flex-direction: column;
		width: 100%;
	}

	.seller-products-header-actions .btn {
		flex: 0 0 auto;
		min-height: 44px;
		width: 100%;
	}

	.seller-import-card {
		padding: 20px !important;
	}

	.seller-import-fields {
		grid-template-columns: minmax(0, 1fr);
	}

	.seller-import-method-options {
		grid-template-columns: minmax(0, 1fr);
	}

	.seller-import-fields > p {
		grid-column: auto;
	}

	.seller-import-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.seller-import-actions .btn {
		width: 100%;
	}

	.seller-import-jobs {
		padding: 0 !important;
	}

	.seller-import-jobs h2,
	.seller-import-empty {
		padding: 20px;
	}

	.seller-import-jobs h2 {
		margin: 0;
	}

	.seller-import-jobs .table-wrapper {
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.seller-import-table,
	.seller-import-table tbody,
	.seller-import-table tr,
	.seller-import-table td {
		display: block;
		min-width: 0;
		width: 100%;
	}

	.seller-import-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.seller-import-table tr {
		padding: 14px 20px;
		border-bottom: 1px solid var(--c-border);
	}

	.seller-import-table tr:last-child {
		border-bottom: 0;
	}

	.seller-import-table td,
	.seller-import-table td:first-child {
		max-width: none;
		padding: 7px 0;
		border: 0;
	}

	.seller-import-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		color: var(--c-text-muted);
		font-size: 14px;
		font-weight: 600;
	}

	.seller-products-controls {
		padding: 16px !important;
	}

	.seller-products-search {
		align-items: stretch;
		flex-direction: column;
	}

	.seller-products-search .btn {
		width: 100%;
	}

	.seller-products-list {
		padding: 0 !important;
	}

	.seller-products-list .table-wrapper {
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.seller-products-table,
	.seller-products-table tbody,
	.seller-products-table tr,
	.seller-products-table td {
		display: block;
		min-width: 0;
		width: 100%;
	}

	.seller-products-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.seller-products-table tr {
		padding: 14px 16px 18px;
		border-bottom: 1px solid var(--c-border);
	}

	.seller-products-table tr:last-child {
		border-bottom: 0;
	}

	.seller-products-table td {
		padding: 8px 0;
		border: 0;
	}

	.seller-products-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 4px;
		color: var(--c-text-muted);
		font-size: 14px;
		font-weight: 600;
	}

	.seller-products-table td:first-child::before,
	.seller-products-actions::before {
		display: none;
	}

	.seller-product-summary {
		min-width: 0;
	}

	.seller-products-actions {
		min-width: 0;
		text-align: left;
	}

	.seller-products-quick > div {
		width: 100%;
		margin-left: 0;
	}

	.seller-products-empty {
		padding: 40px 20px !important;
	}
}

.seller-order-back {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-bottom: 12px;
	color: var(--c-primary);
	font-weight: 600;
}

.seller-order-header {
	margin-bottom: 20px;
}

.seller-order-header h1 {
	overflow-wrap: anywhere;
}

.seller-order-number {
	overflow-wrap: anywhere;
}

.seller-order-header p,
[data-seller-order-detail] .storefront_text,
[data-seller-order-detail] .storefront_order_card_meta {
	margin-top: 6px;
	color: var(--c-text-muted);
}

[data-seller-order-detail] {
	display: grid;
	gap: 20px;
}

[data-seller-order-detail] .card {
	padding: 24px;
	overflow: visible;
}

[data-seller-order-detail] h2 {
	margin-bottom: 16px;
	font-size: 20px;
}

[data-seller-order-detail] .form-grid {
	gap: 20px;
}

[data-seller-order-detail] .storefront_checkout_form {
	display: grid;
	gap: 20px;
}

[data-seller-order-detail] .storefront_action_row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

[data-seller-order-detail] .storefront_action_form {
	margin: 0;
}

[data-seller-order-detail] .btn,
[data-seller-order-detail] .form-control,
[data-seller-order-detail] summary {
	min-height: 44px;
}

[data-seller-order-detail] .storefront_button_danger {
	background: transparent;
	border: 1px solid var(--c-danger);
	color: var(--c-danger);
}

[data-seller-order-detail] .storefront_button_danger:hover {
	background: rgba(239, 68, 68, 0.08);
}

[data-seller-order-detail] .storefront_alert {
	padding: 16px 18px;
	border: 1px solid rgba(16, 185, 129, 0.24);
	border-radius: var(--radius-sm);
	background: rgba(16, 185, 129, 0.08);
}

[data-seller-order-detail] .storefront_alert_danger {
	border-color: rgba(239, 68, 68, 0.24);
	background: rgba(239, 68, 68, 0.08);
}

[data-seller-order-detail] .storefront_order_card {
	display: grid;
	gap: 16px;
	padding: 18px 0;
	border-top: 1px solid var(--c-border);
}

[data-seller-order-detail] .storefront_order_card:first-of-type {
	padding-top: 0;
	border-top: 0;
}

.seller-order-payments .view_definition {
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.seller-order-tracking-form {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) auto;
	align-items: end;
	gap: 10px 12px;
}

.seller-order-tracking-form .form-label {
	grid-column: 1 / -1;
	margin: 0;
}

[data-seller-order-detail] a,
[data-seller-order-detail] dd,
[data-seller-order-detail] strong {
	overflow-wrap: anywhere;
}

@media (max-width: 768px) {
	[data-seller-order-detail] .card {
		padding: 18px;
	}

	[data-seller-order-detail] .storefront_action_row,
	[data-seller-order-detail] .storefront_action_form,
	[data-seller-order-detail] .storefront_action_form .btn,
	[data-seller-order-detail] .storefront_button_danger,
	.seller-order-tracking-form,
	.seller-order-tracking-form .btn {
		width: 100%;
	}

	.seller-order-tracking-form {
		grid-template-columns: 1fr;
	}

	.seller-order-payments .view_definition {
		grid-template-columns: 1fr;
	}
}

.seller-dashboard-heading {
    display: grid;
    gap: 6px;
}

.seller-dashboard-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.seller-dashboard-subtitle,
.seller-dashboard-task p,
.seller-dashboard-empty {
    color: var(--c-text-muted);
}

.seller-dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.seller-dashboard-metrics .stat-card {
    transition: var(--transition);
}

.seller-dashboard-metrics .stat-card:hover {
    border-color: var(--c-primary);
    transform: translateY(-1px);
}

.seller-dashboard-card {
    padding: 24px;
}

.seller-dashboard-card h2 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.seller-dashboard-page {
	font-size: 16px;
}

.seller-dashboard-page .btn {
	min-height: 44px;
	font-size: 16px;
}

.seller-dashboard-page .badge {
	font-size: 14px;
}

.seller-dashboard-page .btn:focus-visible {
	outline: 3px solid var(--c-primary);
	outline-offset: 2px;
}

.seller-delivery-page {
	display: grid;
	gap: 16px;
	max-width: 900px;
	margin: 0 auto;
	font-size: 16px;
}

.seller-delivery-page .seller-delivery-header {
	margin-bottom: 0;
}

.seller-delivery-header > div {
	display: grid;
	gap: 8px;
}

.seller-delivery-section-nav {
	display: flex;
	flex-wrap: wrap;
	margin-bottom: 0;
}

.seller-delivery-section-nav .tab-btn {
	flex: 1 1 150px;
	justify-content: center;
	min-height: 44px;
	text-align: center;
}

.seller-delivery-card[id] {
	scroll-margin-top: 24px;
}

.seller-delivery-page .seller-delivery-header p,
.seller-delivery-page .seller-delivery-card-header p,
.seller-delivery-page .seller-delivery-empty,
.seller-delivery-page .seller-delivery-note,
.seller-delivery-page .seller-delivery-schedule-day p,
.seller-delivery-page .form-text,
.seller-delivery-page .seller-delivery-schedule-times label,
.seller-delivery-page .seller-delivery-method small {
	color: var(--c-text-muted);
	font-size: 14px;
	line-height: 1.5;
}

.seller-delivery-page .seller-delivery-card {
	padding: 20px;
	overflow: visible;
}

.seller-delivery-page .form-control,
.seller-delivery-page .btn {
	min-height: 44px;
	font-size: 16px;
}

.seller-delivery-page .btn-primary {
	background: var(--c-primary);
	box-shadow: 0 4px 10px rgba(184, 79, 66, 0.18);
}

.seller-delivery-page .btn-primary:hover {
	background: var(--c-primary-hover);
}

.seller-delivery-page .btn:focus-visible,
.seller-delivery-page .form-control:focus-visible,
.seller-delivery-page input[type="checkbox"]:focus-visible,
.seller-delivery-page summary:focus-visible {
	outline: 3px solid var(--c-primary);
	outline-offset: 2px;
}

.seller-delivery-page .badge {
	font-size: 14px;
}

.seller-delivery-page .badge.success {
	color: var(--c-success);
}

.seller-delivery-page .badge.warning {
	color: var(--c-warning);
}

.seller-delivery-page .badge.danger,
.seller-delivery-page .storefront_button_danger {
	color: var(--c-danger);
}

.seller-delivery-page .badge.neutral {
	color: var(--c-text-muted);
}

.seller-delivery-page .storefront_button_danger {
	border-color: rgba(180, 35, 24, 0.45);
}

.seller-delivery-page .storefront_button_danger:hover {
	border-color: var(--c-danger);
	background: rgba(180, 35, 24, 0.06);
	color: var(--c-danger);
}

.seller-delivery-card-header {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
}

.seller-delivery-card-header h2 {
	font-size: 1.1rem;
}

.seller-delivery-card-title-row,
.seller-delivery-credential-label,
.seller-delivery-actions,
.seller-delivery-automation-row,
.seller-delivery-schedule-day-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.seller-delivery-form {
	display: grid;
	gap: 16px;
}

.seller-delivery-form .form-group {
	min-width: 0;
	margin-bottom: 0;
}

.seller-delivery-form-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seller-delivery-field-wide {
	grid-column: 1 / -1;
}

.seller-delivery-method {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 56px;
	padding: 12px 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.seller-delivery-method span {
	display: grid;
	gap: 3px;
}

.seller-delivery-method small {
	color: var(--c-text-muted);
}

.seller-delivery-method input[type="checkbox"],
.seller-delivery-schedule-day-heading input[type="checkbox"],
.seller-delivery-delete-secret input[type="checkbox"] {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	accent-color: var(--c-primary);
}

.seller-delivery-summary {
	display: grid;
	gap: 12px;
}

.seller-delivery-summary > div {
	display: grid;
	grid-template-columns: minmax(160px, 0.45fr) 1fr;
	gap: 16px;
}

.seller-delivery-summary dt {
	font-weight: 600;
}

.seller-delivery-note,
.seller-delivery-warning {
	padding: 12px 14px;
	border-radius: var(--radius-sm);
}

.seller-delivery-note {
	margin-bottom: 16px;
	background: var(--c-bg);
}

.seller-delivery-warning {
	background: rgba(245, 158, 11, 0.1);
	color: var(--c-text);
}

.seller-delivery-schedule {
	display: grid;
	gap: 10px;
}

.seller-delivery-schedule-day {
	display: grid;
	grid-template-columns: minmax(180px, 1fr) minmax(260px, 1fr);
	align-items: center;
	gap: 20px;
	padding: 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
}

.seller-delivery-schedule-day-heading label,
.seller-delivery-delete-secret {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	cursor: pointer;
}

.seller-delivery-schedule-times {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.seller-delivery-schedule-times label {
	display: grid;
	gap: 6px;
}

.seller-delivery-schedule-times .form-control,
.seller-delivery-automation-form .form-control {
	min-width: 0;
}

.seller-delivery-details {
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
}

.seller-delivery-details summary {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 14px;
	font-weight: 600;
	cursor: pointer;
}

.seller-delivery-details[open] summary {
	border-bottom: 1px solid var(--c-border);
}

.seller-delivery-details .seller-delivery-form {
	padding: 16px;
}

.seller-delivery-inline-form {
	margin-top: 12px;
}

.seller-delivery-automation-row {
	min-height: 56px;
	padding: 12px 0;
	border-top: 1px solid var(--c-border);
}

.seller-delivery-automation-row > div {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.seller-delivery-automation-form {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--c-border);
}

.seller-delivery-automation-form h3 {
	font-size: 1rem;
}

.seller-delivery-delete-secret {
	min-height: 44px;
	margin-top: 8px;
	color: var(--c-text-muted);
}

@media (max-width: 768px) {
	.seller-delivery-page {
		gap: 16px;
	}

	.seller-delivery-page .seller-delivery-card {
		padding: 16px;
	}

	.seller-delivery-form-grid,
	.seller-delivery-schedule-day {
		grid-template-columns: 1fr;
	}

	.seller-delivery-schedule-day {
		gap: 12px;
	}

	.seller-delivery-method,
	.seller-delivery-automation-row,
	.seller-delivery-card-title-row,
	.seller-delivery-actions {
		align-items: stretch;
		flex-direction: column;
	}

	.seller-delivery-method {
		align-items: center;
		flex-direction: row;
	}

	.seller-delivery-form .btn,
	.seller-delivery-actions .btn,
	.seller-delivery-automation-row .btn,
	.seller-delivery-inline-form .btn {
		width: 100%;
	}

	.seller-delivery-summary > div {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

@media (max-width: 360px) {
	.seller-delivery-schedule-times {
		grid-template-columns: 1fr;
	}
}

.seller-dashboard-task-list {
    display: grid;
    gap: 12px;
}

.seller-dashboard-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
}

.seller-dashboard-task div {
    display: grid;
    gap: 4px;
}

@media (max-width: 768px) {
    .seller-dashboard-task {
        align-items: stretch;
        flex-direction: column;
    }

    .seller-dashboard-task .btn {
        width: 100%;
    }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.5;
    font-size: 14px;
}

.view_body_seller {
	font-size: 16px;
}

.view_body_seller .btn,
.view_body_seller .form-control,
.view_body_seller .tab-btn,
.view_body_seller .storefront_textarea {
	font-size: 16px;
}

.view_body_seller .badge,
.view_body_seller .form-text,
.view_body_seller .upload-hint,
.view_body_seller .storefront_field_label,
.view_body_seller .storefront_order_card_meta,
.view_body_seller .seller-settings-role-badges span,
.view_body_seller small {
	font-size: 14px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Admin Layout Grid */
.admin-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--c-surface);
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    z-index: 100;
}

.sidebar-logo {
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--c-primary);
    border-bottom: 1px solid var(--c-border);
}

.sidebar-close {
	display: none;
}

.sidebar-context-label {
	margin: 0 0 10px 16px;
	color: var(--c-text-muted);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 24px 16px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--c-text-muted);
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 4px;
	min-height: 44px;
}

.nav-link:hover, .nav-link.active {
    background: var(--c-primary-light);
    color: var(--c-primary);
}

/* Main Area */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Header */
.admin-header {
    height: var(--header-height);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--c-bg);
    padding: 8px 16px;
    border-radius: 30px;
    width: 300px;
    border: 1px solid var(--c-border);
}

.header-search input {
    border: none;
    background: transparent;
    outline: none;
    margin-left: 8px;
    width: 100%;
    color: var(--c-text);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 16px;
	margin-left: auto;
}

.view_body_seller .header-user > .badge.neutral,
.view_body_seller .header-user > .btn,
.view_body_seller .view_badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
}

.view_body_seller .view_badge {
	min-width: 44px;
	padding: 8px 12px;
	font-size: 14px;
}

.mobile-menu-toggle.btn {
	display: none;
	min-width: 44px;
	min-height: 44px;
	padding: 10px;
	margin-right: 12px;
	border: 0;
}

.mobile-menu-toggle i {
	color: var(--c-text);
	font-size: 24px;
}

.view_body_seller .storefront_order_card_meta a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
}

.view_body_seller .seller-settings-details summary {
	min-height: 44px;
	padding: 10px 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--c-primary-light);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.header-profile {
	position: relative;
	flex: 0 0 auto;
}

.header-profile-trigger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 2px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.header-profile-trigger:hover .user-avatar {
	background: rgba(173, 70, 58, 0.16);
}

.header-profile-trigger:focus-visible {
	outline: 2px solid var(--c-primary);
	outline-offset: 2px;
}

.header-profile-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 1000;
	min-width: 220px;
	padding: 8px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-md);
	background: var(--c-surface);
	box-shadow: var(--shadow-lg);
}

.header-profile-menu[hidden] {
	display: none;
}

.header-profile-menu__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 0;
	border-radius: var(--radius-sm);
	background: transparent;
	color: var(--c-text);
	font: inherit;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}

.header-profile-menu__item:hover {
	background: var(--c-primary-light);
	color: var(--c-primary);
}

.header-profile-menu__item:focus-visible {
	background: var(--c-primary-light);
	color: var(--c-primary);
	outline: 2px solid var(--c-primary);
	outline-offset: -2px;
}

.header-profile-menu__form {
	margin-top: 4px;
	padding-top: 4px;
	border-top: 1px solid var(--c-border);
}

.header-profile-menu__item_logout {
	color: var(--c-danger);
}

/* Content Area */
.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--c-primary);
    color: white;
    box-shadow: 0 4px 10px var(--c-primary-light);
}

.btn-primary:hover {
    background: var(--c-primary-hover);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--c-border);
    color: var(--c-text);
}

.btn-outline:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
}

/* Dashboard Cards */
.grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    color: var(--c-text-muted);
    margin-bottom: 16px;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--c-text);
}

/* Tables */
.card {
    background: var(--c-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-wrapper {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 16px 24px;
    font-weight: 600;
    color: var(--c-text-muted);
    border-bottom: 1px solid var(--c-border);
    background: rgba(0,0,0,0.01);
}

td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--c-border);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--c-bg); }

/* Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
}

.badge.success { background: rgba(16, 185, 129, 0.1); color: var(--c-success); }
.badge.warning { background: rgba(245, 158, 11, 0.1); color: var(--c-warning); }
.badge.danger { background: rgba(239, 68, 68, 0.1); color: var(--c-danger); }
.badge.neutral { background: var(--c-bg); color: var(--c-text-muted); border: 1px solid var(--c-border); }

.flex-center { display: flex; align-items: center; gap: 12px; }
.product-img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--c-bg); }

/* =========================================
   UI KIT: FORMS & CONTROLS
========================================= */

/* Form Group */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--c-text);
}

.form-label .required {
    color: var(--c-danger);
    margin-left: 2px;
}

.form-text {
    font-size: 12px;
    color: var(--c-text-muted);
    margin-top: 6px;
    display: block;
}

/* Inputs & Textareas */
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    background: var(--c-surface);
    color: var(--c-text);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-control::placeholder {
    color: #a8a29e;
}

.form-control:focus {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px var(--c-primary-light);
}

.form-control.is-invalid {
    border-color: var(--c-danger);
}
.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Custom Select */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d7b68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Toggle Switch (iOS style) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--c-border);
    transition: .3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .toggle-slider {
    background-color: var(--c-success);
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* Drag & Drop Upload Zone */
.upload-zone {
    border: 2px dashed var(--c-border);
    border-radius: var(--radius-md);
    padding: 40px 20px;
    text-align: center;
    background: var(--c-bg);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.upload-zone:hover {
    border-color: var(--c-primary);
    background: var(--c-primary-light);
}

.upload-icon {
    font-size: 40px;
    color: var(--c-text-muted);
    margin-bottom: 12px;
}

.upload-text {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--c-text);
}

.upload-hint {
    font-size: 12px;
    color: var(--c-text-muted);
}

/* Upload Preview Grid */
.upload-preview-list {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.upload-preview-item {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--c-border);
    position: relative;
    overflow: hidden;
}

.upload-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-danger);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-size: 12px;
}

/* Tabs */
.tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--c-border);
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--c-text);
}

.tab-btn.active {
    color: var(--c-primary);
    border-bottom-color: var(--c-primary);
}

/* Layout Utilities for Forms */
.form-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   UI KIT: INTERACTIVITY (JS RELATED)
========================================= */

/* Tab Content Visibility */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Table Sorting Selectors */
th[data-sortable] {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px;
    transition: var(--transition);
}

th[data-sortable]:hover {
    color: var(--c-primary);
    background: rgba(0,0,0,0.03);
}

th[data-sortable]::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    opacity: 0.3;
}

th[data-sortable].sort-asc {
    color: var(--c-primary);
    background: var(--c-primary-light);
}

th[data-sortable].sort-asc::after {
    content: '▲';
    opacity: 1;
}

th[data-sortable].sort-desc {
    color: var(--c-primary);
    background: var(--c-primary-light);
}

th[data-sortable].sort-desc::after {
    content: '▼';
    opacity: 1;
}

/* =========================================
   UI KIT: DROPDOWNS & NOTIFICATIONS
========================================= */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 320px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 200;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 8px;
    height: 8px;
    background: var(--c-primary);
    border-radius: 50%;
    border: 2px solid var(--c-surface);
}

.notifications-menu .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--c-border);
}
.notifications-menu .dropdown-header h3 {
    font-size: 14px;
    margin: 0;
    font-weight: 700;
    color: var(--c-text);
}
.notifications-menu .dropdown-header a {
    font-size: 12px;
    color: var(--c-primary);
}

.notifications-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--c-border);
    transition: var(--transition);
    cursor: pointer;
}
.notification-item:hover {
    background: var(--c-bg);
}
.notification-item.unread {
    background: var(--c-primary-light);
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.notification-icon.warning { background: rgba(245, 158, 11, 0.1); color: var(--c-warning); }
.notification-icon.primary { background: rgba(223, 122, 106, 0.1); color: var(--c-primary); }
.notification-icon.success { background: rgba(16, 185, 129, 0.1); color: var(--c-success); }

.notification-content p {
    margin: 0 0 4px 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--c-text);
}
.notification-content span {
    font-size: 11px;
    color: var(--c-text-muted);
}

.notifications-menu .dropdown-footer {
    padding: 12px 20px;
    text-align: center;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}
.notifications-menu .dropdown-footer a {
    font-size: 13px;
    font-weight: 500;
    color: var(--c-text-muted);
}
.notifications-menu .dropdown-footer a:hover {
    color: var(--c-primary);
}

.toggle-switch {
    flex-shrink: 0;
}

/* =========================================
   UI KIT: MOBILE RESPONSIVE ADAPTATIONS
========================================= */
@media (max-width: 900px) {
    /* Sidebar Mobile */
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 1000;
        transition: left 0.3s ease;
        box-shadow: 2px 0 15px rgba(0,0,0,0.15);
		visibility: hidden;
		pointer-events: none;
    }
    .admin-sidebar.open {
        left: 0;
		visibility: visible;
		pointer-events: auto;
    }
	.sidebar-close {
		display: inline-flex;
		position: absolute;
		top: 14px;
		right: 12px;
		z-index: 1;
		width: 44px;
		height: 44px;
		align-items: center;
		justify-content: center;
		border: 0;
		border-radius: var(--radius-sm);
		background: var(--c-surface);
		color: var(--c-text);
		font-size: 24px;
		cursor: pointer;
	}

    /* Mobile Menu Toggle button */
    .mobile-menu-toggle {
        display: block !important;
    }
    
    /* Overlay for Sidebar */
    .sidebar-overlay {
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: 0.3s ease;
        backdrop-filter: blur(2px);
    }
    .sidebar-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Adjust Main Content Space */
    .admin-main {
        padding: 12px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Adjust Header */
    .admin-header {
        position: sticky;
        top: 10px;
        z-index: 900;
		height: auto;
		min-height: var(--header-height);
		align-items: flex-start;
        padding: 10px 16px;
        margin-bottom: 20px;
        gap: 12px;
        flex-wrap: wrap; /* allow search bar to stack */
    }
    
    /* Layout using flex-order */
    .admin-header .mobile-menu-toggle {
        order: 1;
        margin-right: auto;
    }
    .admin-header .header-user {
        order: 2;
        margin-left: 0;
		max-width: calc(100% - 58px);
		flex-wrap: wrap;
		justify-content: flex-end;
		gap: 8px;
    }
    .mobile-search-toggle {
        display: inline-block !important;
    }
    .admin-header .header-search {
        display: none; /* Hidden by default on mobile */
        order: 3;
        width: 100%;
        min-width: 100% !important;
        margin-top: 12px;
        animation: fadeIn 0.2s ease;
    }
    .admin-header .header-search.active {
        display: flex;
    }

    /* Grids to single column */
    .form-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .card {
        padding: 16px !important;
    }
    
    /* Page Headers */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .page-header h1 {
        font-size: 22px;
    }
    .page-header > div {
        width: 100%;
        flex-direction: column;
    }
    .page-header > div > .header-search {
        width: 100%;
        min-width: 100% !important;
    }
    .page-header .btn {
        width: 100%;
        justify-content: center;
    }

    /* Tables Scroll */
    .table-wrapper {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-right: -16px;
        padding-right: 16px;
    }
    table {
        min-width: 650px; /* Trigger scroll */
    }
    
    /* Minor Dashboard metrics scaling */
    .metrics-grid, .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    /* Fix tabs mobile cutoff */
    .tabs-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid var(--c-border);
        margin-right: -16px; /* Negate card padding to allow full edge-to-edge scroll */
        padding-right: 16px;
        margin-bottom: 20px;
    }

    .tabs-nav::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        flex-shrink: 0; /* prevent text squeezing */
        white-space: nowrap;
    }
    
    /* (Removed search dead icon hack since search is visible again) */
    
    /* Fix mobile notifications dropdown overflow */
    .dropdown-menu {
        position: fixed;
        top: 75px; 
        right: 16px;
        left: 16px;
        width: auto;
        min-width: unset;
        z-index: 1000;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }
}

@media (max-width: 768px) {
	.view_body_seller .admin-header {
		align-items: center;
		flex-wrap: nowrap;
		gap: 8px;
		padding: 10px 12px;
		margin-bottom: 12px;
	}

	.view_body_seller .admin-header .mobile-menu-toggle {
		flex: 0 0 44px;
		margin-right: 0 !important;
	}

	.view_body_seller .admin-header .header-user {
		flex: 1;
		min-width: 0;
		max-width: none;
		align-items: center;
		justify-content: flex-end;
		flex-wrap: nowrap;
		gap: 8px;
	}

	.view_body_seller .admin-header .header-user > .badge.neutral {
		display: none;
	}

	.view_body_seller .admin-header .header-storefront-link {
		position: relative;
		flex: 0 0 44px;
		width: 44px;
		min-width: 44px;
		padding: 0;
	}

	.view_body_seller .admin-header .header-storefront-label {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.view_body_seller .header-profile-menu {
		position: fixed;
		top: calc(10px + var(--header-height) + 8px);
		right: 12px;
		width: min(220px, calc(100vw - 24px));
		min-width: 0;
	}

	.view_body_seller .admin-content {
		min-width: 0;
		padding: 16px 12px;
		overflow-x: hidden;
	}

	.seller-order-number {
		display: block;
		margin-top: 4px;
		font-size: 14px;
		letter-spacing: 0;
	}

	.seller-orders-list {
		padding: 0 !important;
	}

	.seller-orders-empty {
		padding: 40px 20px !important;
	}
}

.seller-product-page {
	width: 100%;
	max-width: 900px;
	min-width: 0;
	margin: 0 auto;
}

.seller-product-page *,
.seller-product-page *::before,
.seller-product-page *::after {
	box-sizing: border-box;
}

.seller-product-page .btn,
.seller-product-back,
.seller-product-help-link,
.seller-product-danger-zone summary {
	min-height: 44px;
}

.seller-product-back,
.seller-product-help-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--c-text-muted);
	font-weight: 600;
}

.seller-product-back {
	margin-bottom: 16px;
}

.seller-product-back:hover,
.seller-product-help-link:hover {
	color: var(--c-primary);
}

.seller-product-back:focus-visible,
.seller-product-help-link:focus-visible,
.seller-product-danger-zone summary:focus-visible,
.seller-product-checkbox input:focus-visible {
	outline: 3px solid var(--c-primary-light);
	outline-offset: 2px;
}

.seller-product-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.seller-product-header > div {
	min-width: 0;
}

.seller-product-create-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 24px;
}

.seller-product-create-header > div {
	min-width: 0;
}

.seller-product-create-header .storefront_text {
	max-width: 680px;
	margin: 8px 0 0;
	color: var(--c-text-muted);
	line-height: 1.55;
}

.seller-product-header h1,
.seller-product-create h1 {
	margin: 0;
	color: var(--c-text);
	overflow-wrap: anywhere;
}

.seller-product-header .badge,
.seller-product-variant .badge,
.seller-product-offer .badge,
.seller-product-media-main {
	align-items: center;
	min-height: 28px;
	padding: 5px 10px;
	white-space: nowrap;
}

.seller-product-page .badge-success {
	background: rgba(16, 185, 129, 0.1);
	color: var(--c-success);
}

.seller-product-page .badge-warning {
	background: rgba(245, 158, 11, 0.1);
	color: var(--c-warning);
}

.seller-product-page .badge-danger {
	background: rgba(239, 68, 68, 0.1);
	color: var(--c-danger);
}

.seller-product-page .badge-neutral {
	border: 1px solid var(--c-border);
	background: var(--c-bg);
	color: var(--c-text-muted);
}

.seller-product-eyebrow {
	margin: 0 0 6px;
	color: var(--c-text-muted);
	font-size: 14px;
	font-weight: 600;
}

.seller-product-message {
	margin-bottom: 20px;
}

.seller-product-read-only {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 14px 16px;
	margin: 0 0 20px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
	color: var(--c-text-muted);
	line-height: 1.5;
}

.seller-product-read-only i {
	flex: 0 0 auto;
	margin-top: 2px;
	font-size: 19px;
}

.seller-product-sections {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 20px;
	min-width: 0;
}

.seller-product-section-errors {
	margin-bottom: -8px;
}

.seller-product-section,
.seller-product-create {
	min-width: 0;
	padding: 28px;
	overflow: visible;
}

.seller-product-section > h2 {
	margin: 0;
	color: var(--c-text);
	font-size: 21px;
	line-height: 1.3;
}

.seller-product-section > h3 {
	margin: 20px 0 8px;
	font-size: 18px;
	overflow-wrap: anywhere;
}

.seller-product-section > .storefront_text {
	max-width: 680px;
	margin: 8px 0 22px;
	color: var(--c-text-muted);
	line-height: 1.55;
}

.seller-product-help-link {
	margin: -10px 0 18px;
}

.seller-product-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	min-width: 0;
}

.seller-product-page .form-group {
	min-width: 0;
	margin-bottom: 0;
}

.seller-product-page .form-control {
	min-height: 44px;
	max-width: 100%;
}

.seller-product-page textarea.form-control {
	min-height: 112px;
}

.seller-product-create textarea.form-control {
	min-height: 76px;
}

.seller-product-page .form-group small {
	display: block;
	margin-top: 7px;
	color: var(--c-text-muted);
	font-size: 14px;
	line-height: 1.45;
}

.seller-product-field-wide,
.seller-product-form-actions {
	grid-column: 1 / -1;
}

.seller-product-form > .btn {
	justify-self: start;
}

.seller-product-form-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.seller-product-page .btn-link {
	padding: 10px 12px;
	background: transparent;
	color: var(--c-text-muted);
}

.seller-product-page .btn-link:hover {
	color: var(--c-primary);
}

.seller-product-inline-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 12px;
	max-width: 680px;
	margin-top: 18px;
}

.seller-product-inline-form + .seller-product-inline-form {
	padding-top: 18px;
	border-top: 1px solid var(--c-border);
}

.seller-product-summary-field {
	display: grid;
	grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1fr);
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--c-border);
}

.seller-product-summary-field:last-child {
	border-bottom: 0;
}

.seller-product-summary-field span {
	color: var(--c-text-muted);
}

.seller-product-summary-field strong,
.seller-product-description-preview {
	overflow-wrap: anywhere;
}

.seller-product-description-preview {
	margin-top: 16px;
	color: var(--c-text);
	line-height: 1.65;
}

.seller-product-empty {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 32px 20px;
	margin-top: 20px;
	border: 1px dashed var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
	color: var(--c-text-muted);
	text-align: center;
}

.seller-product-empty > i {
	color: var(--c-primary);
	font-size: 32px;
}

.seller-product-empty p {
	max-width: 520px;
	margin: 0;
	line-height: 1.5;
}

.seller-product-media-upload {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: end;
	gap: 16px;
	padding: 20px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
}

.seller-product-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--c-text);
	cursor: pointer;
}

.seller-product-checkbox input[type="checkbox"] {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--c-primary);
}

.seller-product-media-upload > .btn {
	justify-self: start;
}

.seller-product-media-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.seller-product-media-card {
	position: relative;
	min-width: 0;
	padding: 14px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
}

.seller-product-media-card > img,
.seller-product-media-placeholder {
	display: flex;
	width: 100%;
	aspect-ratio: 4 / 3;
	align-items: center;
	justify-content: center;
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	object-fit: cover;
}

.seller-product-media-placeholder {
	color: var(--c-text-muted);
	font-size: 40px;
}

.seller-product-media-main {
	position: absolute;
	top: 24px;
	left: 24px;
}

.seller-product-media-card > form {
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.seller-product-media-actions {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.seller-product-media-actions form {
	min-width: 0;
}

.seller-product-characteristics-list,
.seller-product-offer-list,
.seller-product-variant-list,
.seller-product-moderation-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	margin-top: 20px;
}

.seller-product-characteristic,
.seller-product-offer,
.seller-product-variant,
.seller-product-moderation-card {
	min-width: 0;
	padding: 20px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
}

.seller-product-characteristic > form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: end;
	gap: 16px;
}

.seller-product-characteristic .seller-product-form-actions {
	grid-column: auto;
}

.seller-product-characteristic > span,
.seller-product-summary-field > span,
.seller-product-offer-values span {
	font-size: 14px;
}

.seller-product-characteristic > strong {
	display: block;
	margin-top: 5px;
	overflow-wrap: anywhere;
}

.seller-product-characteristic-offer {
	margin: 0 0 12px;
	color: var(--c-text-muted);
	font-size: 14px;
	font-weight: 600;
}

.seller-product-input-unit {
	display: flex;
	align-items: stretch;
	min-width: 0;
}

.seller-product-input-unit .form-control {
	min-width: 0;
	border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.seller-product-input-unit .form-control:last-child {
	border-radius: var(--radius-sm);
}

.seller-product-input-unit > span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	padding: 0 12px;
	border: 1px solid var(--c-border);
	border-left: 0;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--c-surface);
	color: var(--c-text-muted);
	font-size: 14px;
}

.seller-product-offer > header,
.seller-product-variant > header,
.seller-product-moderation-card > header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.seller-product-offer h3,
.seller-product-variant h3,
.seller-product-moderation-card h3 {
	margin: 0;
	font-size: 17px;
	overflow-wrap: anywhere;
}

.seller-product-offer header p,
.seller-product-moderation-card header p {
	margin: 5px 0 0;
	color: var(--c-text-muted);
	font-size: 14px;
}

.seller-product-offer-forms,
.seller-product-variant-forms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 18px;
}

.seller-product-offer-forms > form,
.seller-product-variant-forms > form {
	display: grid;
	align-content: end;
	gap: 12px;
	min-width: 0;
}

.seller-product-offer-values {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 18px;
}

.seller-product-offer-values > div {
	padding: 14px;
	border-radius: var(--radius-sm);
	background: var(--c-surface);
}

.seller-product-offer-values span,
.seller-product-offer-values strong {
	display: block;
}

.seller-product-offer-values span {
	margin-bottom: 5px;
	color: var(--c-text-muted);
}

.seller-product-offer-locked,
.seller-product-moderation-waiting,
.seller-product-moderation-published {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 14px 0 0;
	line-height: 1.5;
}

.seller-product-moderation-published {
	color: var(--c-success);
}

.seller-product-moderation-waiting {
	color: var(--c-warning);
}

.seller-product-publication-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.seller-product-publication-links p {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--c-text-muted);
}

.seller-product-moderation-note {
	padding: 14px;
	margin-top: 14px;
	border-left: 3px solid var(--c-warning);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--c-surface);
}

.seller-product-moderation-review {
	border-left-color: var(--c-primary);
}

.seller-product-moderation-note p {
	margin: 6px 0 0;
	line-height: 1.55;
	overflow-wrap: anywhere;
}

.seller-product-moderation-note small {
	display: block;
	margin-top: 8px;
	color: var(--c-text-muted);
}

.seller-product-moderation-card > form {
	margin-top: 16px;
}

.seller-product-moderation-card > form > .btn {
	margin-top: 12px;
}

.seller-product-danger-zone {
	padding-top: 16px;
	margin-top: 24px;
	border-top: 1px solid var(--c-border);
}

.seller-product-danger-zone summary {
	display: inline-flex;
	align-items: center;
	color: var(--c-text-muted);
	font-weight: 600;
	cursor: pointer;
}

.seller-product-danger-zone[open] summary {
	color: var(--c-text);
}

.seller-product-danger-zone > div {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-bg);
}

.seller-product-danger-zone > div > p {
	flex: 1 1 100%;
	margin: 0 0 4px;
	color: var(--c-text-muted);
}

.seller-product-page .storefront_button_danger {
	border: 1px solid rgba(239, 68, 68, 0.35);
	background: transparent;
	color: var(--c-danger);
}

.seller-product-page .storefront_button_danger:hover {
	border-color: var(--c-danger);
	background: rgba(239, 68, 68, 0.06);
}

@media (max-width: 768px) {
	.seller-product-header,
	.seller-product-create-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
		margin-bottom: 20px;
	}

	.seller-product-create-header .btn {
		width: 100%;
	}

	.seller-product-section,
	.seller-product-create {
		padding: 20px !important;
	}

	.seller-product-form,
	.seller-product-inline-form,
	.seller-product-media-upload,
	.seller-product-media-grid,
	.seller-product-characteristic > form,
	.seller-product-offer-forms,
	.seller-product-variant-forms {
		grid-template-columns: minmax(0, 1fr);
	}

	.seller-product-form-actions,
	.seller-product-field-wide {
		grid-column: auto;
	}

	.seller-product-form > .btn,
	.seller-product-media-upload > .btn,
	.seller-product-inline-form > .btn,
	.seller-product-offer-forms .btn,
	.seller-product-variant-forms .btn,
	.seller-product-characteristic .seller-product-form-actions,
	.seller-product-moderation-card > form > .btn {
		width: 100%;
	}

	.seller-product-summary-field {
		grid-template-columns: minmax(0, 1fr);
		gap: 5px;
	}

	.seller-product-media-actions,
	.seller-product-publication-links,
	.seller-product-danger-zone > div {
		align-items: stretch;
		flex-direction: column;
	}

	.seller-product-media-actions form,
	.seller-product-media-actions .btn,
	.seller-product-publication-links .btn,
	.seller-product-danger-zone form,
	.seller-product-danger-zone .btn {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.seller-product-header h1,
	.seller-product-create h1 {
		font-size: 24px;
	}

	.seller-product-section,
	.seller-product-create {
		padding: 16px !important;
	}

	.seller-product-section > h2 {
		font-size: 19px;
	}

	.seller-product-characteristic,
	.seller-product-offer,
	.seller-product-variant,
	.seller-product-moderation-card {
		padding: 16px;
	}

	.seller-product-offer > header,
	.seller-product-variant > header,
	.seller-product-moderation-card > header {
		flex-wrap: wrap;
	}

	.seller-product-offer-values {
		grid-template-columns: minmax(0, 1fr);
	}

	.seller-product-page input[type="file"] {
		font-size: 14px;
	}
}

.seller-settings-page .form-control,
.seller-settings-page .btn,
.seller-communication-page .btn,
.seller-delivery-page .form-control,
.seller-delivery-page .btn,
.seller-orders-header .btn,
.seller-orders-controls .form-control,
.seller-orders-controls .btn,
.seller-orders-list .form-control,
.seller-orders-list .btn,
.seller-products-header .btn,
.seller-products-controls .form-control,
.seller-products-controls .btn,
.seller-products-list .form-control,
.seller-products-list .btn {
	min-height: 44px;
}

@media (max-width: 900px) {
	.seller-settings-tabs,
	.seller-communication-tabs,
	.seller-delivery-section-nav,
	.seller-product-section-nav {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		overflow: visible;
		margin-right: 0;
		padding-right: 0;
	}

	.seller-settings-tabs .tab-btn,
	.seller-communication-tabs .tab-btn,
	.seller-delivery-section-nav .tab-btn,
	.seller-product-section-nav .tab-btn {
		width: 100%;
		min-width: 0;
		min-height: 44px;
		justify-content: center;
		white-space: normal;
		text-align: center;
	}

	.seller-delivery-section-nav .tab-btn:last-child:nth-child(odd),
	.seller-product-section-nav .tab-btn:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}

@media (max-width: 900px) {
	.seller-orders-tabs,
	.seller-products-tabs {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		overflow: visible;
		margin-right: 0;
		padding-right: 0;
	}

	.seller-orders-tabs .tab-btn,
	.seller-products-tabs .tab-btn {
		width: 100%;
		min-width: 0;
		min-height: 44px;
		justify-content: center;
		white-space: normal;
		text-align: center;
	}

	.seller-orders-tabs .tab-btn:last-child:nth-child(odd),
	.seller-products-tabs .tab-btn:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}
.seller-category-mapping-page {
	max-width: 1320px;
}

.seller-category-mapping-header {
	align-items: flex-start;
	margin-bottom: 20px;
}

.seller-category-mapping-header > div {
	max-width: 760px;
}

.seller-category-mapping-header p {
	margin-top: 6px;
	color: var(--c-text-muted);
	line-height: 1.55;
}

.seller-category-mapping-header form {
	flex: 0 0 auto;
}

.seller-category-mapping-header .btn {
	min-height: 44px;
}

.seller-category-mapping-sources {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
	padding: 6px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
}

.seller-category-mapping-source {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 16px;
	border-radius: calc(var(--radius-sm) - 4px);
	color: var(--c-text-muted);
	font-size: 14px;
	font-weight: 700;
	transition: background 0.2s ease, color 0.2s ease;
}

.seller-category-mapping-source:hover {
	background: var(--c-primary-light);
	color: var(--c-primary);
}

.seller-category-mapping-source:focus-visible {
	outline: 3px solid var(--c-primary-light);
	outline-offset: 2px;
}

.seller-category-mapping-source.active {
	background: var(--c-primary);
	color: #ffffff;
}

.seller-category-mapping-source.active:hover {
	color: #ffffff;
}

.seller-category-mapping-summary {
	display: grid;
	grid-template-columns: repeat(5, minmax(130px, 1fr));
	gap: 10px;
	margin-bottom: 20px;
}

.seller-category-mapping-summary-item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 72px;
	padding: 14px 16px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
	color: var(--c-text-muted);
	transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.seller-category-mapping-summary-item:hover {
	border-color: var(--c-primary);
	color: var(--c-primary);
}

.seller-category-mapping-summary-item:focus-visible {
	outline: 3px solid var(--c-primary-light);
	outline-offset: 2px;
}

.seller-category-mapping-summary-item.active {
	border-color: var(--c-primary);
	background: var(--c-primary-light);
	color: var(--c-primary);
}

.seller-category-mapping-summary-item strong {
	font-size: 24px;
	line-height: 1;
}

.seller-category-mapping-summary-item span {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.seller-category-mapping-bulk-hint {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: -8px 0 20px;
	color: var(--c-text-muted);
	font-size: 14px;
	line-height: 1.5;
}

.seller-category-mapping-bulk-hint i {
	flex: 0 0 auto;
	margin-top: 2px;
	color: var(--c-primary);
	font-size: 18px;
}

.seller-category-mapping-list {
	margin-bottom: 20px;
}

.seller-category-mapping-table {
	min-width: 1080px;
}

.seller-category-mapping-table th,
.seller-category-mapping-table td {
	padding: 16px;
	vertical-align: top;
}

.seller-category-mapping-table th:nth-child(1) {
	width: 28%;
}

.seller-category-mapping-table th:nth-child(2) {
	width: 90px;
}

.seller-category-mapping-table th:nth-child(3) {
	width: 36%;
}

.seller-category-mapping-table th:nth-child(4) {
	width: 150px;
}

.seller-category-mapping-path {
	display: block;
	line-height: 1.45;
	overflow-wrap: anywhere;
}

.seller-category-mapping-meta {
	display: block;
	margin-top: 5px;
	color: var(--c-text-muted);
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: anywhere;
}

.seller-category-mapping-table [data-category-picker] {
	min-width: 290px;
}

.seller-category-mapping-table .form-control {
	width: 100%;
	min-height: 44px;
}

.seller-category-mapping-table .form-text {
	display: block;
	margin-top: 6px;
	color: var(--c-text-muted);
	font-size: 13px;
	line-height: 1.4;
}

.seller-category-mapping-actions {
	min-width: 148px;
	text-align: right;
}

.seller-category-mapping-actions .btn {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
}

.seller-category-mapping-actions .btn + .btn {
	margin-top: 8px;
}

.seller-category-mapping-actions .btn:disabled,
.seller-category-mapping-actions .btn:disabled:hover {
	opacity: 0.55;
	box-shadow: none;
	cursor: not-allowed;
	transform: none;
}

.seller-category-mapping-actions .btn-primary:disabled:hover {
	background: var(--c-primary);
}

.seller-category-mapping-empty {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 56px 24px;
	text-align: center;
}

.seller-category-mapping-empty > i {
	color: var(--c-primary);
	font-size: 38px;
}

.seller-category-mapping-empty h2 {
	font-size: 19px;
}

.seller-category-mapping-empty p {
	max-width: 540px;
	color: var(--c-text-muted);
	line-height: 1.55;
}

@media (max-width: 1100px) {
	.seller-category-mapping-summary {
		grid-template-columns: repeat(3, minmax(130px, 1fr));
	}
}

@media (max-width: 900px) {
	.seller-category-mapping-source {
		flex: 1 1 180px;
	}

	.seller-category-mapping-header {
		align-items: stretch;
		flex-direction: column;
	}

	.seller-category-mapping-header form,
	.seller-category-mapping-header .btn {
		width: 100%;
	}

	.seller-category-mapping-summary {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.seller-category-mapping-summary-item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}

	.seller-category-mapping-list {
		padding: 0 !important;
		overflow: visible;
	}

	.seller-category-mapping-list .table-wrapper {
		margin: 0;
		padding: 0;
		overflow: visible;
	}

	.seller-category-mapping-table,
	.seller-category-mapping-table tbody,
	.seller-category-mapping-table tr,
	.seller-category-mapping-table td {
		display: block;
		min-width: 0;
		width: 100%;
	}

	.seller-category-mapping-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}

	.seller-category-mapping-table tr {
		padding: 6px 0;
		border-bottom: 1px solid var(--c-border);
	}

	.seller-category-mapping-table tr:last-child {
		border-bottom: 0;
	}

	.seller-category-mapping-table td {
		padding: 12px 20px;
		border: 0;
	}

	.seller-category-mapping-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 6px;
		color: var(--c-text-muted);
		font-size: 13px;
		font-weight: 600;
	}

	.seller-category-mapping-table [data-category-picker] {
		min-width: 0;
	}

	.seller-category-mapping-actions {
		display: flex !important;
		gap: 8px;
		padding-top: 4px !important;
		text-align: left;
	}

	.seller-category-mapping-actions::before {
		display: none !important;
	}

	.seller-category-mapping-actions .btn {
		flex: 1;
	}

	.seller-category-mapping-actions .btn + .btn {
		margin-top: 0;
	}
}