/* FBAJANS - Grid ürün çoklu resim galerisi v1.4.1 */

:is(.product-grid, .journal-search-overlay__results, #product-search) .product-thumb .image {
	position: relative !important;
	overflow: hidden;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery {
	display: block;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery > div {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery .img-first {
	width: 100% !important;
	height: auto !important;
	opacity: 1 !important;
	visibility: visible !important;
	display: block !important;
}

/* 2. resim sadece galeri aktifken gizlensin */
:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery.fba-has-gallery .img-second,
:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery.fba-has-gallery:hover .img-second {
	opacity: 0 !important;
	visibility: hidden !important;
	display: none !important;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery.fba-has-gallery .img-first,
:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery.fba-has-gallery:hover .img-first {
	opacity: 1 !important;
	visibility: visible !important;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery > div,
:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery:hover > div,
:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery img,
:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-grid-gallery:hover img {
	transform: none !important;
}

/* Resim altı şeritler */
:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-gallery-indicators {
	display: none;
	align-items: center;
	gap: 4px;
	width: 100%;
	min-height: 3px;
	margin: 0;
	padding: 6px 8px 4px;
	box-sizing: border-box;
	pointer-events: none;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-gallery-indicators.fba-loading {
	display: flex;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-gallery-indicators.fba-loading::before {
	content: '';
	flex: 1;
	height: 3px;
	border-radius: 2px;
	background: rgba(180, 180, 180, 0.45);
	animation: fba-indicator-pulse 1s ease-in-out infinite;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-gallery-indicators.fba-has-indicators {
	display: flex;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-gallery-indicators.fba-has-indicators::before {
	display: none;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-gallery-indicators .fba-indicator {
	flex: 1 1 0;
	min-width: 0;
	height: 3px;
	border-radius: 2px;
	background: rgba(180, 180, 180, 0.95);
	transition: background-color 0.15s ease;
}

:is(.product-grid, .journal-search-overlay__results, #product-search) .fba-gallery-indicators .fba-indicator.active {
	background: #1a73e8;
}

.mobile :is(.product-grid, .journal-search-overlay__results, #product-search) .fba-gallery-indicators .fba-indicator,
.mobile :is(.product-grid, .journal-search-overlay__results, #product-search) .fba-gallery-indicators.fba-loading::before {
	height: 2px;
}

@keyframes fba-indicator-pulse {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 1; }
}
