/* ===========================================
   Product Gallery Swiper Widget
   =========================================== */

.cpgs-wrap {
	position: relative;
	width: 100%;
	max-width: 100%;
}

.cpgs-main-wrap {
	position: relative;
}

/* 主图 swiper */
.cpgs-main {
	width: 100%;
	overflow: hidden;
	background-color: #f5f5f5;
}

.cpgs-main .swiper-wrapper {
	height: 100%;
}

.cpgs-main .swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.cpgs-main .swiper-slide img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	display: block;
	object-fit: cover;
}

/* 缩略图 swiper */
.cpgs-thumbs {
	width: 100%;
	overflow: hidden;
}

.cpgs-thumbs .swiper-slide {
	cursor: pointer;
	overflow: hidden;
	transition: opacity .25s ease, border-color .25s ease;
}

.cpgs-thumbs .swiper-slide img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	display: block;
	object-fit: cover;
}

.cpgs-thumbs .swiper-slide-thumb-active {
	opacity: 1 !important;
}

/* 导航按钮 */
.cpgs-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	padding: 0;
	color: #1f2937;
	background: rgba(255, 255, 255, 0.92);
	transition: background-color .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease;
}

.cpgs-nav:hover {
	transform: translateY(-50%) scale(1.05);
}

.cpgs-nav:active {
	transform: translateY(-50%) scale(0.96);
}

.cpgs-nav svg {
	display: block;
	width: 18px;
	height: 18px;
	fill: currentColor;
	transition: fill .25s ease;
}

.cpgs-nav i {
	font-size: 18px;
	line-height: 1;
}

.cpgs-prev { left: 14px; }
.cpgs-next { right: 14px; }

.cpgs-nav.swiper-button-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* 阴影变体 */
.cpgs-shadow-none .cpgs-nav { box-shadow: none; }
.cpgs-shadow-soft .cpgs-nav { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12); }
.cpgs-shadow-strong .cpgs-nav { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22); }

/* 手机端：缩小导航按钮 */
@media (max-width: 640px) {
	.cpgs-nav {
		width: 36px !important;
		height: 36px !important;
	}
	.cpgs-nav svg, .cpgs-nav i {
		width: 14px !important;
		height: 14px !important;
		font-size: 14px !important;
	}
}
