/**
 * Product Gallery Slider (hello-makadamia)
 */
.maka-pgs {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.maka-pgs__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.maka-pgs__track {
	display: flex;
	width: 100%;
	transition: transform 0.35s ease;
	will-change: transform;
	touch-action: pan-y;
}

.maka-pgs__slide {
	flex: 0 0 100%;
	width: 100%;
	max-width: 100%;
	position: relative;
}

.maka-pgs__link {
	display: block;
	width: 100%;
	height: 100%;
}

.maka-pgs__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	-webkit-user-drag: none;
	user-select: none;
}

/* Immagine singola: nessuno slider, solo l'immagine. */
.maka-pgs--single .maka-pgs__track {
	transition: none;
	transform: none !important;
}

/* --- Frecce --- */
.maka-pgs__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.85);
	color: #111;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.maka-pgs__arrow svg {
	width: 18px;
	height: 18px;
}

.maka-pgs__arrow--prev {
	left: 8px;
}

.maka-pgs__arrow--next {
	right: 8px;
}

.maka-pgs:hover .maka-pgs__arrow,
.maka-pgs:focus-within .maka-pgs__arrow {
	opacity: 1;
}

.maka-pgs__arrow:hover {
	background: #fff;
}

/* Su touch le frecce restano nascoste: si usa lo swipe. */
@media (hover: none) {
	.maka-pgs__arrow {
		display: none;
	}
}

/* --- Dots --- */
.maka-pgs__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	z-index: 3;
	display: flex;
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}

.maka-pgs__dot {
	width: 7px;
	height: 7px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.6);
	box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
	cursor: pointer;
	pointer-events: auto;
	transition: background 0.2s ease, transform 0.2s ease;
}

.maka-pgs__dot.is-active {
	background: #fff;
	transform: scale(1.25);
}
