.spc-wrap {
	max-width: 960px;
	margin: 0 auto;
}
.spc-intro {
	color: #666;
	margin-bottom: 20px;
}
.spc-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 16px;
}
.spc-product-card {
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}
.spc-product-thumb {
	width: 100%;
	height: 160px;
	object-fit: cover;
	display: block;
}
.spc-product-info {
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.spc-product-info strong {
	font-size: 14px;
	color: #222;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.spc-btn-primary {
	background: #2563eb;
	color: #fff;
	border: none;
	padding: 9px 14px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
}
.spc-btn-primary:hover {
	background: #1d4ed8;
}

/* Modal */
.spc-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.spc-modal[hidden] {
	display: none;
}
.spc-modal__inner {
	background: #fff;
	border-radius: 12px;
	max-width: 900px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	padding: 24px;
}
.spc-modal__close {
	position: absolute;
	top: 14px;
	right: 18px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}
.spc-modal__body {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
}
.spc-modal__picker {
	flex: 0 0 160px;
}
.spc-modal__picker h3 {
	font-size: 13px;
	margin: 0 0 10px;
	color: #444;
}
.spc-image-picker {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.spc-picker-thumb {
	width: 100%;
	height: 90px;
	object-fit: cover;
	border-radius: 6px;
	cursor: pointer;
	border: 2px solid transparent;
	opacity: 0.7;
}
.spc-picker-thumb--active,
.spc-picker-thumb:hover {
	opacity: 1;
	border-color: #2563eb;
}
.spc-modal__preview {
	flex: 1;
	min-width: 280px;
	text-align: center;
}
#spc-canvas {
	width: 100%;
	max-width: 420px;
	height: auto;
	border-radius: 8px;
	border: 1px solid #eee;
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.spc-status {
	font-size: 13px;
	color: #888;
	margin: 12px 0;
}

@media (max-width: 600px) {
	.spc-modal__body {
		flex-direction: column;
	}
	.spc-modal__picker {
		flex: 0 0 auto;
	}
	.spc-image-picker {
		flex-direction: row;
		overflow-x: auto;
	}
	.spc-picker-thumb {
		width: 70px;
		height: 70px;
		flex-shrink: 0;
	}
}
