/* AR Product Gallery — defaults match the design; every value can be changed in Elementor. */

.ar-pg,
.ar-pg *,
.ar-pg *::before,
.ar-pg *::after {
	box-sizing: border-box;
}

.ar-pg {
	--ar-pg-thumb-w: 52px;
	--ar-pg-thumb-h: var(--ar-pg-thumb-w);
	--ar-pg-accent: #e94335;
	--ar-pg-navy: #0a2540;
	--ar-pg-surface: #efefef;
	--ar-pg-zoom: 2;
	display: flex;
	flex-direction: var(--ar-pg-dir, row);
	gap: 14px;
	width: 100%;
	color: var(--ar-pg-navy);
}

.ar-pg-notice {
	padding: 16px;
	border: 1px dashed #c3c4c7;
	font-size: 14px;
}

/* ---------- Thumbnails ---------- */
.ar-pg-thumbs-wrap {
	display: var(--ar-pg-tdisplay, block);
	position: relative;
	flex: none;
	width: var(--ar-pg-twrap, var(--ar-pg-thumb-w));
	min-width: 0;
}

.ar-pg-thumbs {
	position: var(--ar-pg-tpos, absolute);
	inset: 0;
	display: flex;
	flex-direction: var(--ar-pg-tdir, column);
	gap: 12px;
	overflow-x: var(--ar-pg-tox, hidden);
	overflow-y: var(--ar-pg-toy, auto);
	overscroll-behavior: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.ar-pg-thumbs::-webkit-scrollbar {
	display: none;
}

.ar-pg .ar-pg-thumb {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--ar-pg-thumb-w);
	height: var(--ar-pg-thumb-h);
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: var(--ar-pg-surface);
	border: 1px solid #e3e3e3;
	border-radius: 6px;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	transition: border-color .15s ease, opacity .15s ease;
}

.ar-pg .ar-pg-thumb:hover {
	background: var(--ar-pg-surface);
	border-color: #b9bec5;
}

.ar-pg .ar-pg-thumb.is-active {
	border-color: var(--ar-pg-accent);
}

.ar-pg .ar-pg-thumb:focus-visible {
	outline: 2px solid var(--ar-pg-navy);
	outline-offset: -2px;
}

.ar-pg .ar-pg-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
	pointer-events: none;
}

.ar-pg .ar-pg-thumb .ar-pg-play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	transform: translate(-50%, -50%);
}

/* ---------- Main slider ---------- */
.ar-pg-main {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
}

.ar-pg-track {
	display: flex;
	aspect-ratio: 5 / 4;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: auto;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	background: var(--ar-pg-surface);
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	outline: none;
}

.ar-pg-track::-webkit-scrollbar {
	display: none;
}

.ar-pg-track:focus-visible {
	box-shadow: 0 0 0 2px var(--ar-pg-navy);
}

.ar-pg-slide {
	position: relative;
	flex: 0 0 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	overflow: hidden;
	scroll-snap-align: start;
	scroll-snap-stop: always;
	box-sizing: border-box;
}

.ar-pg-slide .ar-pg-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: contain;
	border-radius: 0;
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	transition: transform .12s ease-out;
}

.ar-pg.has-fs .ar-pg-slide--image {
	cursor: zoom-in;
}

.ar-pg.has-zoom .ar-pg-slide.is-zooming .ar-pg-img {
	transform: scale(var(--ar-pg-zoom));
	transition: none;
}

/* Video cover */
.ar-pg .ar-pg-video-cover {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.ar-pg .ar-pg-video-cover:hover {
	background: transparent;
}

.ar-pg .ar-pg-video-cover .ar-pg-img {
	position: absolute;
	inset: 0;
	object-fit: cover;
}

.ar-pg .ar-pg-slide .ar-pg-play {
	position: relative;
	width: 64px;
	height: 64px;
	transition: transform .15s ease;
}

.ar-pg .ar-pg-video-cover:hover .ar-pg-play {
	transform: scale(1.06);
}

.ar-pg-slide iframe,
.ar-pg-slide video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

.ar-pg-play {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ar-pg-navy);
	color: #fff;
}

.ar-pg-play svg {
	width: 60%;
	height: 60%;
	display: block;
}

/* ---------- Arrows & fullscreen ---------- */
.ar-pg .ar-pg-arrow,
.ar-pg .ar-pg-fs {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	background: #fff;
	border: 0;
	box-shadow: 0 1px 3px rgba(10, 37, 64, .12);
	color: var(--ar-pg-navy);
	line-height: 1;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

.ar-pg .ar-pg-arrow {
	display: var(--ar-pg-arrows, flex);
	top: 50%;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 11px;
	transform: translateY(-50%);
}

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

.ar-pg .ar-pg-arrow:hover:not(:disabled),
.ar-pg .ar-pg-fs:hover {
	background: var(--ar-pg-navy);
	color: #fff;
}

.ar-pg .ar-pg-arrow:disabled {
	opacity: .35;
	cursor: default;
}

.ar-pg .ar-pg-fs {
	top: 10px;
	right: 10px;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	font-size: 10px;
}

.ar-pg .ar-pg-arrow:focus-visible,
.ar-pg .ar-pg-fs:focus-visible,
.ar-pg .ar-pg-dot:focus-visible {
	outline: 2px solid var(--ar-pg-navy);
	outline-offset: 2px;
}

.ar-pg .ar-pg-arrow svg,
.ar-pg .ar-pg-fs svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.ar-pg.is-video-active .ar-pg-fs {
	opacity: 0;
	pointer-events: none;
}

/* ---------- Dots ---------- */
.ar-pg-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 2;
	display: var(--ar-pg-dots, none);
	justify-content: center;
	gap: 6px;
	pointer-events: none;
}

.ar-pg .ar-pg-dot {
	-webkit-appearance: none;
	appearance: none;
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(10, 37, 64, .25);
	cursor: pointer;
	pointer-events: auto;
}

.ar-pg .ar-pg-dot.is-active {
	background: var(--ar-pg-navy);
}

/* One image: nothing to navigate */
.ar-pg.is-single .ar-pg-thumbs-wrap,
.ar-pg.is-single .ar-pg-arrow,
.ar-pg.is-single .ar-pg-dots {
	display: none;
}

/* ---------- Fullscreen view ---------- */
.ar-pg-lb {
	--ar-pg-lb-bg: rgba(10, 20, 35, .94);
	--ar-pg-lb-color: #fff;
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--ar-pg-lb-bg);
	color: var(--ar-pg-lb-color);
	touch-action: pan-y;
	animation: arPgFade .18s ease-out;
}

.ar-pg-lb[hidden] {
	display: none;
}

.ar-pg-lb-img {
	display: block;
	max-width: 92vw;
	max-height: 86vh;
	width: auto;
	height: auto;
	object-fit: contain;
	-webkit-user-select: none;
	user-select: none;
}

.ar-pg-lb button {
	-webkit-appearance: none;
	appearance: none;
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	background: rgba(255, 255, 255, .1);
	border: 0;
	border-radius: 50%;
	color: var(--ar-pg-lb-color);
	cursor: pointer;
}

.ar-pg-lb button:hover {
	background: rgba(255, 255, 255, .2);
	color: var(--ar-pg-lb-color);
}

.ar-pg-lb button:focus-visible {
	outline: 2px solid var(--ar-pg-lb-color);
	outline-offset: 2px;
}

.ar-pg-lb button svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ar-pg-lb-close { top: 16px; right: 16px; }
.ar-pg-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.ar-pg-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

.ar-pg-lb.is-single .ar-pg-lb-prev,
.ar-pg-lb.is-single .ar-pg-lb-next,
.ar-pg-lb.is-single .ar-pg-lb-count {
	display: none;
}

.ar-pg-lb-count {
	position: absolute;
	bottom: 18px;
	left: 50%;
	transform: translateX(-50%);
	font-size: 14px;
	opacity: .8;
}

@keyframes arPgFade {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@media (max-width: 767px) {
	.ar-pg-lb-prev { left: 8px; }
	.ar-pg-lb-next { right: 8px; }
	.ar-pg-lb-img { max-width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
	.ar-pg-lb { animation: none; }
	.ar-pg-slide .ar-pg-img,
	.ar-pg .ar-pg-thumb,
	.ar-pg .ar-pg-play { transition: none; }
}
