.inthea-product {
	--inthea-radius-card: 12px;
	--inthea-color-primary: #2563eb;
	--inthea-border: #e2e8f0;
	--inthea-bg-soft: #f8fafc;
	--inthea-text-muted: #64748b;
	max-width: 1400px;
}

.inthea-product__header {
	background: linear-gradient(135deg, #ecfdf5 0%, #f8fafc 100%);
	border: 1px solid var(--inthea-border);
	border-radius: var(--inthea-radius-card);
	padding: 24px 28px;
	margin: 16px 0 24px;
}

.inthea-product__header-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}

.inthea-product__title {
	margin: 0 0 8px;
	font-size: 24px;
	font-weight: 600;
	color: #0f172a;
}

.inthea-product__subtitle {
	margin: 0;
	font-size: 14px;
	color: var(--inthea-text-muted);
}

.inthea-product__back {
	margin: 0 0 12px;
}

.inthea-product__back a {
	color: var(--inthea-color-primary);
	text-decoration: none;
	font-weight: 600;
}

.inthea-product__button {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	border: 1px solid transparent;
	cursor: pointer;
}

.inthea-product__button--primary,
.inthea-product .button-primary {
	background: var(--inthea-color-primary);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.inthea-product__button--secondary,
.inthea-product .button {
	background: #fff;
	border-color: var(--inthea-border);
	color: #334155 !important;
}

.inthea-product__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
	gap: 16px;
	margin-bottom: 24px;
}

.inthea-product__stat-card {
	background: #fff;
	border: 1px solid var(--inthea-border);
	border-radius: var(--inthea-radius-card);
	padding: 16px 18px;
}

.inthea-product__stat-label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--inthea-text-muted);
	text-transform: uppercase;
}

.inthea-product__stat-value {
	margin: 0;
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
}

.inthea-product__section {
	margin-bottom: 24px;
}

.inthea-product__section-head {
	margin-bottom: 12px;
}

.inthea-product__section-title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 600;
}

.inthea-product__section-subtitle {
	margin: 0;
	font-size: 13px;
	color: var(--inthea-text-muted);
}

.inthea-product__filters-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.inthea-product__filter-meta {
	margin: 10px 0 0;
	color: var(--inthea-text-muted);
	font-size: 13px;
}

.inthea-product__table-wrap {
	background: #fff;
	border: 1px solid var(--inthea-border);
	border-radius: var(--inthea-radius-card);
	overflow-x: auto;
}

.inthea-product__table {
	width: 100%;
	border-collapse: collapse;
}

.inthea-product__table th,
.inthea-product__table td {
	padding: 12px 14px;
	border-bottom: 1px solid #eef2f7;
	text-align: left;
	vertical-align: middle;
}

.inthea-product__table-empty {
	text-align: center;
	color: var(--inthea-text-muted);
	padding: 28px 16px !important;
}

.inthea-product__row--inactive {
	opacity: 0.65;
}

.inthea-product__link {
	font-weight: 600;
	color: #0f172a;
	text-decoration: none;
}

.inthea-product__link:hover {
	color: var(--inthea-color-primary);
}

.inthea-product__name-en {
	font-weight: 400;
	color: var(--inthea-text-muted);
	font-size: 13px;
}

.inthea-product__brand-link {
	font-weight: 500;
}

.inthea-product__brand-missing {
	color: #646970;
	font-style: italic;
}

.inthea-product__brand-notice {
	margin-top: 8px;
	padding: 12px 14px;
	border: 1px solid #f0c33c;
	border-radius: 4px;
	background: #fcf9e8;
}

.inthea-product__brand-notice-text {
	margin: 0 0 10px;
	color: #1d2327;
}

.inthea-product__field--brand .inthea-product__button {
	margin-top: 0;
}

.inthea-product__submit-row input[type="submit"]:disabled,
.inthea-product__header-actions button:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.inthea-product__panel--muted {
	background: #f6f7f7;
}

.inthea-product__option-create-notice {
	margin: 0;
	color: #50575e;
}

.inthea-product__panel--options {
	margin-top: 16px;
}

.inthea-product__option-toolbar {
	margin-bottom: 12px;
}

.inthea-product__table--options th:last-child,
.inthea-product__table--options td:last-child {
	width: 96px;
	text-align: center;
}

.inthea-product__option-input {
	width: 100%;
	max-width: 100%;
}

.inthea-product__option-input--sort {
	max-width: 88px;
}

.inthea-product__option-empty td {
	color: #646970;
	font-style: italic;
	text-align: center;
}

.inthea-product__option-footer-note {
	margin: 12px 0 0;
	color: #646970;
	font-size: 13px;
}

.inthea-product__sku-create-notice {
	margin: 0;
	color: #50575e;
}

.inthea-product__panel--skus {
	margin-top: 16px;
}

.inthea-product__sku-helper {
	margin: 0 0 12px;
	color: #646970;
	font-size: 13px;
}

.inthea-product__sku-toolbar {
	margin-bottom: 12px;
}

.inthea-product__sku-input {
	width: 100%;
	max-width: 100%;
}

.inthea-product__sku-input--price {
	max-width: 140px;
}

.inthea-product__sku-option-cell {
	min-width: 220px;
}

.inthea-product__sku-option-select {
	margin: 0 6px 4px 0;
}

.inthea-product__sku-option-label {
	display: inline-block;
	color: #646970;
	font-size: 12px;
}

.inthea-product__sku-empty td {
	color: #646970;
	font-style: italic;
	text-align: center;
}

.inthea-product__table--skus th:last-child,
.inthea-product__table--skus td:last-child {
	width: 96px;
	text-align: center;
}

.inthea-product__sku-delete-cell {
	white-space: nowrap;
}

.inthea-product__sku-stock-cell {
	min-width: 180px;
	vertical-align: top;
}

.inthea-product__sku-stock-summary {
	font-size: 12px;
	line-height: 1.45;
}

.inthea-product__sku-stock-dl {
	margin: 0;
}

.inthea-product__sku-stock-item {
	display: flex;
	gap: 8px;
	margin: 0 0 4px;
}

.inthea-product__sku-stock-item:last-child {
	margin-bottom: 0;
}

.inthea-product__sku-stock-item dt {
	flex: 0 0 auto;
	margin: 0;
	color: #646970;
	font-weight: 600;
}

.inthea-product__sku-stock-item dd {
	margin: 0;
	color: #1d2327;
}

.inthea-product__sku-stock-message,
.inthea-product__sku-stock-note {
	margin: 0;
	color: #646970;
	font-size: 12px;
}

.inthea-product__sku-stock-note {
	margin-top: 4px;
	font-style: italic;
}

.inthea-product__sku-footer-note {
	margin: 12px 0 0;
	color: #646970;
	font-size: 13px;
}

.inthea-product__image-create-notice {
	margin: 0;
	color: #50575e;
}

.inthea-product__panel--images {
	margin-top: 16px;
}

.inthea-product-image__toolbar {
	margin-bottom: 12px;
}

.inthea-product-image__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}

.inthea-product-image__empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 20px;
	border: 1px dashed var(--inthea-border);
	border-radius: 8px;
	color: #646970;
	font-style: italic;
	text-align: center;
}

.inthea-product-image__row {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--inthea-border);
	border-radius: 8px;
	background: #fbfbfc;
}

.inthea-product-image__row--uploading {
	opacity: 0.7;
}

.inthea-product-image__preview-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 160px;
	border: 1px solid var(--inthea-border);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.inthea-product-image__preview {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.inthea-product-image__preview-empty {
	color: #a7aaad;
	font-size: 12px;
}

.inthea-product-image__actions {
	margin: 0;
	display: flex;
	gap: 6px;
}

.inthea-product-image__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	color: #50575e;
}

.inthea-product-image__primary-label {
	display: flex;
	align-items: center;
	gap: 6px;
}

.inthea-product-image__sort-label {
	display: flex;
	align-items: center;
	gap: 6px;
}

.inthea-product-image__sort-input {
	width: 72px;
}

.inthea-product__code {
	font-size: 12px;
}

.inthea-product__muted {
	color: var(--inthea-text-muted);
	font-size: 13px;
}

.inthea-product__badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.inthea-product__badge--active {
	background: #dcfce7;
	color: #166534;
}

.inthea-product__badge--inactive {
	background: #f1f5f9;
	color: #64748b;
}

.inthea-product__bulk-col {
	width: 36px;
	text-align: center;
}

.inthea-product__list-actions {
	margin-bottom: 12px;
}

.inthea-product__pagination {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.inthea-product__pagination-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid var(--inthea-border);
	text-decoration: none;
	color: #334155;
}

.inthea-product__pagination-link--current {
	background: var(--inthea-color-primary);
	border-color: var(--inthea-color-primary);
	color: #fff;
}

.inthea-product__panel {
	background: #fff;
	border: 1px solid var(--inthea-border);
	border-radius: var(--inthea-radius-card);
	padding: 20px 22px;
	margin-bottom: 20px;
}

.inthea-product__panel--danger {
	border-color: #fecaca;
	background: #fffafa;
}

.inthea-product__panel-head {
	margin-bottom: 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--inthea-border);
}

.inthea-product__field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.inthea-product__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.inthea-product__field--span-2 {
	grid-column: 1 / -1;
}

.inthea-product__field-label {
	font-size: 13px;
	font-weight: 600;
}

.inthea-product__field-hint {
	font-size: 12px;
	color: var(--inthea-text-muted);
}

.inthea-product__field input,
.inthea-product__field select,
.inthea-product__field textarea {
	width: 100%;
}

.inthea-product__field--error input,
.inthea-product__field--error select,
.inthea-product__field--error textarea {
	border-color: #ef4444;
}

.inthea-product__submit-row {
	margin-top: 8px;
}

.inthea-product__header-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}

.inthea-product__notice {
	padding: 14px 16px;
	border-radius: 10px;
	margin: 0 0 20px;
	border: 1px solid var(--inthea-border);
}

.inthea-product__notice--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.inthea-product__notice--info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e3a8a;
}

.inthea-product__notice--success {
	background: #ecfdf5;
	border-color: #bbf7d0;
	color: #166534;
}

.inthea-product__fieldset {
	border: 1px solid var(--inthea-border);
	border-radius: 10px;
	padding: 14px 16px;
}

.inthea-product__radio {
	display: block;
	margin: 8px 0;
	font-weight: 500;
}

.inthea-product__preview-grid {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 10px 16px;
	margin: 0;
}

.inthea-product__preview-row {
	display: contents;
}

.inthea-product__preview-row dt {
	margin: 0;
	font-weight: 600;
	color: #475569;
}

.inthea-product__preview-row dd {
	margin: 0;
	word-break: break-word;
}

.inthea-product__button--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--inthea-text-muted) !important;
}

.inthea-product__form--inline-actions {
	margin-top: 20px;
}

.inthea-product__import-status {
	margin: 0 0 16px;
	font-size: 14px;
}

.inthea-product__import-status-label {
	color: var(--inthea-text-muted);
}

.inthea-product__warning-list {
	margin: 0;
	padding-left: 18px;
}

.inthea-product__pipeline-note {
	margin-top: 16px;
}

.inthea-product__preview-highlight {
	margin-bottom: 20px;
	padding: 16px;
	border: 1px solid var(--inthea-border, #dcdcde);
	border-radius: 8px;
	background: var(--inthea-surface-muted, #f6f7f7);
}

.inthea-product__preview-label {
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 600;
	color: var(--inthea-text-muted, #646970);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.inthea-product__preview-product-name {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.inthea-product__preview-thumb {
	margin-bottom: 20px;
}

.inthea-product__preview-thumb--empty {
	margin-bottom: 20px;
	padding: 12px;
	border: 1px dashed var(--inthea-border, #c3c4c7);
	border-radius: 8px;
}

.inthea-product__preview-thumb-image {
	display: block;
	max-width: 220px;
	max-height: 220px;
	width: auto;
	height: auto;
	border: 1px solid var(--inthea-border, #dcdcde);
	border-radius: 6px;
	background: #fff;
}

.inthea-product__bulk-count {
	margin: 0 0 12px;
	font-weight: 600;
}

.inthea-product__button--primary.inthea-history-modal__button {
	background: var(--inthea-color-primary);
	color: #fff;
	border-color: var(--inthea-color-primary);
}

@media (max-width: 767px) {
	.inthea-product__field-grid {
		grid-template-columns: 1fr;
	}
}
