/* ==== MARVIT SWIPER GALLERY V4.0.0 - ELEMENTOR ==== */
/* INSTRUÇÕES: Substitua .elementor-widget-woocommerce-product-images pelo seletor real do seu widget */
/* Exemplo: .elementor-element-1a2b3c4d ou o ID específico do seu widget */

/* ESCONDER GALERIA ORIGINAL DO WOOCOMMERCE */
.elementor-widget-woocommerce-product-images
	.woocommerce-product-gallery:not(.marvit-swiper-gallery)
	.woocommerce-product-gallery__wrapper {
	display: none !important;
}

/* ESCONDER ELEMENTOS SPACER DO ELEMENTOR STICKY */
.elementor-widget-woocommerce-product-images.elementor-sticky__spacer {
	display: none !important;
}

/* SELETOR ESPECÍFICO - SUBSTITUA PELO SEU ID DE ELEMENTO */
/* .elementor-element-SEU-ID-AQUI .woocommerce-product-gallery:not(.marvit-swiper-gallery) .woocommerce-product-gallery__wrapper {
    display: none !important;
} */

/* Container principal do Swiper */
.elementor-widget-woocommerce-product-images .marvit-swiper-gallery {
	position: relative;
	max-width: 100%;
	background: #ffffff;
	border: 1px solid #f5f5f5;
	border-radius: 8px;
	padding: 32px;
	overflow: visible;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* ==== GALERIA PRINCIPAL ==== */
.elementor-widget-woocommerce-product-images .main-gallery-wrapper {
	position: relative;
	margin-bottom: 24px;
}

.elementor-widget-woocommerce-product-images .marvit-main-swiper {
	width: 100% !important;
	height: 500px;
	border-radius: 6px;
	overflow: hidden;
	background: #fafafa;
	border: 1px solid #f0f0f0;
	display: block !important;
	visibility: visible !important;
}

.elementor-widget-woocommerce-product-images .marvit-main-swiper .swiper-slide {
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: #f8f9fa;
	visibility: visible !important;
	opacity: 1 !important;
}

.elementor-widget-woocommerce-product-images
	.marvit-main-swiper
	.image-container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.elementor-widget-woocommerce-product-images .marvit-main-swiper img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	cursor: zoom-in;
	transition: transform 0.3s ease;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.elementor-widget-woocommerce-product-images
	.marvit-main-swiper
	.swiper-zoom-container {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==== GALERIA DE THUMBNAILS ==== */
.elementor-widget-woocommerce-product-images .thumbs-gallery-wrapper {
	position: relative;
	height: auto;
	min-height: 110px;
	background: #f8f9fa;
	border-radius: 10px;
	padding: 15px 20px 20px 20px;
	overflow: hidden;
	margin-top: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.elementor-widget-woocommerce-product-images .marvit-thumbs-swiper {
	height: 70px !important;
	width: 100% !important;
	display: flex !important;
	align-items: center !important;
	justify-content: flex-start !important;
	overflow: hidden !important;
}

.elementor-widget-woocommerce-product-images
	.marvit-thumbs-swiper
	.swiper-slide {
	width: 85px !important;
	height: 70px !important;
	margin-right: 12px;
	flex-shrink: 0;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.elementor-widget-woocommerce-product-images
	.marvit-thumbs-swiper
	.swiper-wrapper {
	align-items: center !important;
	display: flex !important;
}

/* Força configurações de tamanho para sobrescrever cálculos automáticos do Swiper */
.elementor-widget-woocommerce-product-images
	.marvit-thumbs-swiper
	.swiper-slide[style] {
	width: 85px !important;
	margin-right: 12px !important;
}
.elementor-widget-woocommerce-product-images .thumb-item {
	width: 70px;
	height: 70px;
	border: 3px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
}

.elementor-widget-woocommerce-product-images .thumb-item:hover {
	border-color: #855e94;
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(133, 94, 148, 0.25);
}

.elementor-widget-woocommerce-product-images
	.marvit-thumbs-swiper
	.swiper-slide-thumb-active
	.thumb-item {
	border-color: #855e94 !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(133, 94, 148, 0.3);
}

.elementor-widget-woocommerce-product-images .thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

.elementor-widget-woocommerce-product-images .thumb-item:hover img {
	transform: scale(1.05);
}

/* ==== NAVEGAÇÃO ==== */
.elementor-widget-woocommerce-product-images .swiper-navigation {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
	z-index: 10;
}

.elementor-widget-woocommerce-product-images .marvit-thumb-prev,
.elementor-widget-woocommerce-product-images .marvit-thumb-next {
	display: none !important;
}

.elementor-widget-woocommerce-product-images .marvit-thumb-prev {
	left: 15px;
}

.elementor-widget-woocommerce-product-images .marvit-thumb-next {
	right: 15px;
}

.elementor-widget-woocommerce-product-images .marvit-thumb-prev:hover,
.elementor-widget-woocommerce-product-images .marvit-thumb-next:hover {
	background: rgba(133, 94, 148, 1);
	transform: translateY(-50%) scale(1.1);
}

.elementor-widget-woocommerce-product-images .marvit-thumb-prev::after {
	content: "‹";
	font-size: 18px;
	line-height: 1;
}

.elementor-widget-woocommerce-product-images .marvit-thumb-next::after {
	content: "›";
	font-size: 18px;
	line-height: 1;
}

/* Estado desabilitado */
.elementor-widget-woocommerce-product-images
	.marvit-thumb-prev.swiper-button-disabled,
.elementor-widget-woocommerce-product-images
	.marvit-thumb-next.swiper-button-disabled {
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

/* ==== CONTADOR DE IMAGENS ==== */
.elementor-widget-woocommerce-product-images .image-counter {
	position: absolute;
	bottom: 16px;
	left: 16px;
	background: rgba(133, 94, 148, 0.9);
	color: white;
	padding: 6px 12px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	z-index: 20;
	backdrop-filter: blur(10px);
}

/* ==== ZOOM INDICATOR ==== */
.elementor-widget-woocommerce-product-images
	.marvit-main-swiper
	.image-container::after {
	content: "🔍";
	position: absolute;
	top: 16px;
	right: 16px;
	background: rgba(133, 94, 148, 0.8);
	color: white;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 10;
	pointer-events: none;
}

.elementor-widget-woocommerce-product-images
	.marvit-main-swiper
	.image-container:hover::after {
	opacity: 1;
}

/* ==== RESPONSIVIDADE ==== */
@media (max-width: 768px) {
	.elementor-widget-woocommerce-product-images .marvit-swiper-gallery {
		padding: 20px;
	}

	.elementor-widget-woocommerce-product-images .marvit-main-swiper {
		height: 350px;
	}

	.elementor-widget-woocommerce-product-images .thumbs-gallery-wrapper {
		padding: 12px 20px 15px 20px;
		min-height: 100px;
		height: auto;
		overflow: hidden;
	}

	.elementor-widget-woocommerce-product-images
		.marvit-thumbs-swiper
		.swiper-slide {
		height: 70px !important;
	}

	.elementor-widget-woocommerce-product-images .thumb-item {
		width: 70px;
		height: 70px;
	}

	.elementor-widget-woocommerce-product-images .marvit-thumb-prev,
	.elementor-widget-woocommerce-product-images .marvit-thumb-next {
		width: 30px;
		height: 30px;
	}

	.elementor-widget-woocommerce-product-images .marvit-thumb-prev {
		left: 10px;
	}

	.elementor-widget-woocommerce-product-images .marvit-thumb-next {
		right: 10px;
	}
}

@media (max-width: 480px) {
	.elementor-widget-woocommerce-product-images .marvit-swiper-gallery {
		padding: 16px;
	}

	.elementor-widget-woocommerce-product-images .marvit-main-swiper {
		height: 300px;
	}

	.elementor-widget-woocommerce-product-images .thumbs-gallery-wrapper {
		padding: 10px 15px;
		min-height: 90px;
		height: auto;
		overflow: hidden;
	}

	.elementor-widget-woocommerce-product-images
		.marvit-thumbs-swiper
		.swiper-slide {
		height: 60px !important;
	}

	.elementor-widget-woocommerce-product-images .thumb-item {
		width: 60px;
		height: 60px;
	}

	.elementor-widget-woocommerce-product-images .marvit-thumb-prev,
	.elementor-widget-woocommerce-product-images .marvit-thumb-next {
		width: 28px;
		height: 28px;
	}

	.elementor-widget-woocommerce-product-images .marvit-thumb-prev::after,
	.elementor-widget-woocommerce-product-images .marvit-thumb-next::after {
		font-size: 16px;
	}
}

/* ==== ANIMAÇÕES ==== */
@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.elementor-widget-woocommerce-product-images .marvit-swiper-gallery {
	animation: slideIn 0.5s ease-out;
}

/* ==== LOADING STATES ==== */
.elementor-widget-woocommerce-product-images
	.marvit-swiper-gallery
	.swiper-slide
	img {
	opacity: 0;
	transition: opacity 0.3s ease;
}

.elementor-widget-woocommerce-product-images
	.marvit-swiper-gallery
	.swiper-slide
	img.loaded {
	opacity: 1;
}

/* ==== ACESSIBILIDADE ==== */
.elementor-widget-woocommerce-product-images .marvit-thumb-prev:focus,
.elementor-widget-woocommerce-product-images .marvit-thumb-next:focus {
	outline: 2px solid #855e94;
	outline-offset: 2px;
}

.elementor-widget-woocommerce-product-images .thumb-item:focus {
	outline: 2px solid #855e94;
	outline-offset: 2px;
}

/* ==== SCROLLBAR CUSTOMIZADA ==== */
.elementor-widget-woocommerce-product-images
	.marvit-thumbs-swiper
	.swiper-scrollbar {
	position: absolute;
	bottom: 5px;
	left: 20px;
	right: 20px;
	height: 8px;
	background: rgba(133, 94, 148, 0.15);
	border-radius: 4px;
	opacity: 1 !important;
}

.elementor-widget-woocommerce-product-images
	.marvit-thumbs-swiper
	.swiper-scrollbar-drag {
	background: #855e94;
	border-radius: 4px;
	height: 8px;
}

.elementor-widget-woocommerce-product-images
	.marvit-thumbs-swiper
	.swiper-scrollbar-drag:hover {
	background: #9b6ba8;
	height: 6px;
	margin-top: -1px;
}

/* ==== MELHORAR VISUALIZAÇÃO DAS THUMBS ==== */
.elementor-widget-woocommerce-product-images .marvit-thumbs-swiper {
	height: 100% !important;
	width: 100% !important;
	overflow: visible !important;
}

.elementor-widget-woocommerce-product-images
	.marvit-thumbs-swiper
	.swiper-wrapper {
	align-items: center;
	padding: 5px 0;
}

.elementor-widget-woocommerce-product-images
	.marvit-thumbs-swiper
	.swiper-slide {
	width: auto !important;
	height: 100px !important;
	margin-right: 15px;
	flex-shrink: 0;
}

.elementor-widget-woocommerce-product-images .thumb-item {
	width: 100px;
	height: 100px;
	border: 3px solid transparent;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ==== FORÇAR VISIBILIDADE DE TODOS OS ELEMENTOS ==== */
.elementor-widget-woocommerce-product-images .marvit-swiper-gallery,
.elementor-widget-woocommerce-product-images .marvit-swiper-gallery *,
.elementor-widget-woocommerce-product-images .marvit-main-swiper,
.elementor-widget-woocommerce-product-images .marvit-thumbs-swiper,
.elementor-widget-woocommerce-product-images .swiper-slide,
.elementor-widget-woocommerce-product-images .thumb-item {
	visibility: visible !important;
	opacity: 1 !important;
}
