﻿/* ============================================================
   Product Gallery Widget
   ============================================================ */
.pg-wrap { position: relative; width: 100%; }

/* ---- Main image ---- */
.pg-main-wrap { position: relative; }

.pg-main { overflow: hidden; }

.pg-main .swiper-slide {
	height: 500px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f5f5f5;
	overflow: hidden;
	cursor: zoom-in;
}

.pg-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}

.pg-main .swiper-slide:hover img {
	transform: scale(1.15);
}

/* ---- Nav arrows ---- */
.pg-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	font-size: 28px;
	color: #b71a33;
	cursor: pointer;
	user-select: none;
	line-height: 1;
	transition: color .3s ease;
	background: none;
	border: 0;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pg-nav svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.pg-prev { left: 10px; }
.pg-next { right: 10px; }

.pg-nav:hover { color: #8c1428; }

/* ---- Thumbnails ---- */
.pg-thumbs {
	overflow: hidden;
	margin-top: 10px;
}

.pg-thumbs .swiper-slide {
	height: 100px;
	cursor: pointer;
	position: relative;
	border: 2px solid transparent;
	box-sizing: border-box;
	transition: border-color .3s ease;
	background-color: #f5f5f5;
}

.pg-thumbs .swiper-slide::after {
	content: '';
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.45);
	transition: background-color .3s ease;
	pointer-events: none;
}

.pg-thumbs .swiper-slide:hover::after {
	background-color: rgba(0, 0, 0, 0.2);
}

.pg-thumbs .swiper-slide-thumb-active {
	border-color: #b71a33;
}

.pg-thumbs .swiper-slide-thumb-active::after {
	background-color: transparent;
}

.pg-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
