/* Product Content builder */
.pc-section { margin-bottom: 24px; }
.pc-section > h3 { margin-bottom: 16px; }

.pc-rows { display: flex; flex-direction: column; gap: 16px; }

.pc-row {
	background: #fff;
	border: 1px solid #e4e7ed;
	border-radius: 4px;
	overflow: hidden;
}
.pc-row-hd {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 14px;
	background: #f7f8fa;
	border-bottom: 1px solid #e4e7ed;
	cursor: pointer;
	user-select: none;
}
.pc-row-hd .pc-row-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #303133;
}
.pc-row-hd .pc-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #01abec;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}
.pc-row-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.pc-row-actions button {
	height: 28px;
	padding: 0 10px;
	border: 1px solid #dcdfe6;
	background: #fff;
	border-radius: 4px;
	color: #606266;
	cursor: pointer;
	font-size: 12px;
	line-height: 26px;
	white-space: nowrap;
}
.pc-row-actions button:hover {
	border-color: #01abec;
	color: #01abec;
}
.pc-row-actions .pc-remove {
	color: #f56c6c;
}
.pc-row-actions .pc-remove:hover {
	border-color: #f56c6c;
	color: #f56c6c;
	background: #fef0f0;
}
.pc-row.collapsed .pc-row-bd {
	display: none;
}

.pc-row-bd { padding: 16px; }
.pc-grid {
	display: grid;
	gap: 16px;
	align-items: start;
	width: 100%;
	min-width: 0;
}
.pc-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pc-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pc-grid.cols-1 { grid-template-columns: minmax(0, 1fr); }

.pc-field { min-width: 0; }
.pc-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
	color: #303133;
}
.pc-field label b { color: #f00; margin-right: 2px; }

.pc-field input[type="text"],
.pc-field textarea {
	width: 100%;
	border: 1px solid #dcdfe6;
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 14px;
	box-sizing: border-box;
}
.pc-field input[type="text"] { height: 40px; }
.pc-field textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.5;
}

.pc-upload {
	width: 100px;
	height: 100px;
	min-height: 100px;
	max-height: 100px;
	border: 1px dashed #c0c4cc;
	border-radius: 4px;
	background: #fafafa;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	box-sizing: border-box;
}
.pc-upload img,
.pc-upload video {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}
.pc-upload .pc-upload-placeholder {
	text-align: center;
	color: #909399;
	font-size: 13px;
	padding: 20px;
}
.pc-upload .pc-upload-placeholder i {
	display: block;
	font-size: 28px;
	margin-bottom: 8px;
	color: #c0c4cc;
}
.pc-upload .pc-upload-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	border: none;
	border-radius: 50%;
	background: rgba(0,0,0,.55);
	color: #fff;
	cursor: pointer;
	display: none;
	line-height: 24px;
	text-align: center;
	padding: 0;
	z-index: 2;
}
.pc-upload.has-media {
	border: none;
	background: #fff;
}
.pc-upload.has-media .pc-upload-remove { display: block; }
.pc-upload.has-media .pc-upload-placeholder { display: none; }

.pc-video-url {
	position: relative;
	border: 1px solid #e4e7ed;
	border-radius: 4px;
	padding: 12px;
	background: #fafafa;
}
.pc-video-input {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}
.pc-video-input-field {
	flex: 1;
	height: 40px;
	border: 1px solid #dcdfe6;
	border-radius: 4px;
	padding: 0 12px;
	font-size: 14px;
	box-sizing: border-box;
}
.pc-video-apply {
	height: 40px;
	padding: 0 16px;
	border: none;
	border-radius: 4px;
	background: #01abec;
	color: #fff;
	cursor: pointer;
	font-size: 14px;
}
.pc-video-apply:hover { background: #0299d4; }
.pc-video-preview {
	min-height: 0;
	max-width: 360px;
	overflow: hidden;
}
.pc-video-preview iframe,
.pc-video-preview video {
	width: 100%;
	max-width: 100%;
	max-height: 202px;
	display: block;
	border: none;
	background: #000;
}
.pc-video-preview video { max-height: 202px; }
.pc-video-preview .pc-view-embed {
	padding-top: 0;
	aspect-ratio: 16 / 9;
	max-height: 202px;
}
.pc-view-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	padding-top: 0;
	background: #000;
	overflow: hidden;
	border-radius: 8px;
}
.pc-view-embed iframe,
.pdp-intro-body .pc-view-embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	max-width: 100%;
}
.pc-video-help {
	margin-top: 8px;
	color: #909399;
	font-size: 12px;
}
.pc-video-tip {
	padding: 12px;
	color: #f56c6c;
	background: #fef0f0;
	border-radius: 4px;
	font-size: 13px;
}

.pc-gallery-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.pc-gallery-item {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border: none;
	border-radius: 8px;
	position: relative;
	overflow: hidden;
	background: transparent;
	box-shadow: none;
	box-sizing: border-box;
}
.pc-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: transparent;
	display: block;
}
.pc-gallery-item .pc-gallery-del {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 24px;
	border: none;
	background: rgba(1,171,236,.9);
	color: #fff;
	cursor: pointer;
	display: none;
	font-size: 12px;
}
.pc-gallery-item:hover .pc-gallery-del { display: block; }
.pc-crop-btn {
	position: absolute;
	left: 6px;
	top: 6px;
	z-index: 3;
	height: 22px;
	padding: 0 8px;
	border: none;
	border-radius: 3px;
	background: rgba(1,171,236,.92);
	color: #fff;
	font-size: 12px;
	line-height: 22px;
	cursor: pointer;
	display: none;
}
.pc-upload.has-media .pc-crop-btn,
.pc-gallery-item .pc-crop-btn { display: block; }

.pc-crop-mask {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	pointer-events: none;
}
.pc-crop-dialog {
	width: min(640px, 100%);
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(0,0,0,.16);
	border: 1px solid #e4e7ed;
	pointer-events: auto;
}
.pc-crop-hd {
	padding: 14px 18px;
	font-size: 16px;
	font-weight: 600;
	border-bottom: 1px solid #ebeef5;
}
.pc-crop-tip {
	margin: 0;
	padding: 10px 18px 0;
	font-size: 13px;
	color: #909399;
	line-height: 1.5;
}
.pc-crop-body {
	padding: 16px 18px;
	display: flex;
	justify-content: center;
	background: #f5f6f8;
}
.pc-crop-stage {
	position: relative;
	display: inline-block;
	line-height: 0;
	max-width: 100%;
	user-select: none;
	overflow: hidden;
}
.pc-crop-stage img {
	max-width: 560px;
	max-height: 420px;
	width: auto;
	height: auto;
	display: block;
}
.pc-crop-box {
	position: absolute;
	border: 2px solid #01abec;
	background: transparent;
	box-shadow: 0 0 0 2000px rgba(0,0,0,.4);
	cursor: move;
	box-sizing: border-box;
	z-index: 2;
}
.pc-crop-handle {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 14px;
	height: 14px;
	background: #01abec;
	border: 2px solid #fff;
	border-radius: 2px;
	cursor: nwse-resize;
	box-sizing: border-box;
}
.pc-crop-ft {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 18px;
	border-top: 1px solid #ebeef5;
}
.pc-crop-ft button {
	height: 36px;
	padding: 0 16px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
}
.pc-crop-cancel {
	border: 1px solid #dcdfe6;
	background: #fff;
	color: #606266;
}
.pc-crop-ok {
	border: none;
	background: #01abec;
	color: #fff;
}
.pc-gallery-add {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border: 1px dashed #c0c4cc;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #909399;
	font-size: 32px;
	background: #fafafa;
	box-sizing: border-box;
}

.pc-add-wrap {
	position: relative;
	margin-top: 20px;
	display: inline-block;
}
.pc-add-btn {
	background: #01abec;
	color: #fff;
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px #01abec;
	height: 40px;
	padding: 0 28px;
	border-radius: 4px;
	font-size: 15px;
	cursor: pointer;
}
.pc-add-btn:hover { background: #0299d4; }
.pc-add-menu {
	display: none;
	position: absolute;
	left: 0;
	bottom: 48px;
	min-width: 200px;
	background: #1e3a5f;
	border-radius: 4px;
	padding: 8px 0;
	z-index: 20;
	box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.pc-add-menu.open { display: block; }
.pc-add-menu li {
	padding: 10px 18px;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	list-style: none;
}
.pc-add-menu li:hover { background: rgba(255,255,255,.12); }

@media (max-width: 640px) {
	.pc-grid.cols-3,
	.pc-grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Storefront product content blocks ===== */
.procontent-wrap {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
	box-sizing: border-box;
}
.procontent-block {
	margin-bottom: 28px;
}
.procontent-block:last-child { margin-bottom: 0; }
.pc-view {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}
.pc-view.cols-2 {
	display: flex;
	flex-wrap: nowrap;
	gap: 12px;
	align-items: flex-start;
}
.pc-view.cols-2 > .pc-view-media {
	flex: 0 0 calc((100% - 24px) / 3);
	width: calc((100% - 24px) / 3);
	max-width: calc((100% - 24px) / 3);
	min-width: 0;
	box-sizing: border-box;
}
.pc-view.cols-2 > .pc-view-video {
	flex: 0 0 56%;
	width: 56%;
	max-width: 56%;
}
.pc-view.cols-2 > .pc-view-copy {
	flex: 1 1 0;
	width: auto;
	max-width: none;
	min-width: 0;
	box-sizing: border-box;
}
.pc-view-media {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}
.pc-view-media img,
.pc-view-media video {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	object-fit: contain;
	border-radius: 8px;
}
.pc-view.cols-2 > .pc-view-media:not(.pc-view-embed) img {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
	background: transparent;
}
.pc-view h3,
.pc-view-copy h3 {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: #222;
	font-family: inherit;
}
.pc-view-text {
	font-size: 14px;
	line-height: 1.7;
	color: #444;
	word-break: break-word;
}
.pc-view.center { text-align: center; }
.pc-view.center h3 {
	text-align: center;
}
.pc-view.center .pc-view-media:not(.pc-view-embed) {
	margin: 0 auto;
	max-width: calc((100% - 24px) / 3);
}
.pc-view.center .pc-view-embed,
.pc-view.center .pc-view-video {
	margin: 0 auto;
	max-width: 56%;
	width: 100%;
}
.pc-view.center .pc-view-media:not(.pc-view-embed) img {
	margin: 0 auto;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: transparent;
}
.pc-view-gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
}
.pc-gallery-card {
	background: transparent;
	border-radius: 8px;
	box-shadow: none;
	border: none;
	overflow: hidden;
	box-sizing: border-box;
}
.pc-view-gallery img,
.pc-gallery-card img {
	width: 100%;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	display: block;
	border-radius: 0;
	object-fit: contain;
	background: transparent;
}
.pc-view.editor {
	max-width: 100%;
	overflow: hidden;
}
.pc-view.editor img,
.pc-view.editor video,
.pc-view.editor iframe {
	max-width: 100%;
	height: auto;
}

@media (max-width: 768px) {
	.pc-view.cols-2 {
		flex-wrap: wrap;
	}
	.pc-view.cols-2 > .pc-view-media,
	.pc-view.cols-2 > .pc-view-copy {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
	}
	.pc-view-gallery,
	.pc-gallery-list {
		grid-template-columns: minmax(0, 1fr);
	}
}
