/**
 * EligeTu — Mobile touch and tap-target optimizations
 */

button,
input[type="submit"],
.button,
a.button,
.eligetu-header-icon,
.footer-social__link,
.footer-newsletter__submit {
	touch-action: manipulation;
}

/* Minimum 44×44px tap targets */
.eligetu-swatch-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 10px;
}

.eligetu-pill-btn {
	min-height: 44px;
	padding: 10px 18px;
}

.eligetu-gallery__thumb {
	min-width: 72px;
	min-height: 72px;
}

.eligetu-product-card__cta-link {
	min-height: 44px;
	display: inline-flex !important;
	align-items: center;
}

.footer-bottom__legal-list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 4px 0;
}

.site-nav__link {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

.eligetu-gallery__main {
	touch-action: pan-y pinch-zoom;
}

/* Product carousels — native horizontal swipe on touch / narrow viewports.
   On desktop mouse/trackpad, avoid pan-x (it traps vertical page scroll). */
@media (max-width: 1023px) {
	.home-bestsellers__track,
	.eligetu-product-related__track {
		touch-action: pan-x !important;
		overflow-y: hidden !important;
		overscroll-behavior-x: contain;
		overscroll-behavior-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.home-bestsellers__track .eligetu-product-card,
	.home-bestsellers__track .home-product-card,
	.eligetu-product-related__track .eligetu-product-card {
		touch-action: pan-x !important;
	}
}

@media (pointer: fine) and (min-width: 1024px) {
	.home-bestsellers__track,
	.eligetu-product-related__track {
		overflow-x: hidden !important;
		touch-action: auto;
		scroll-snap-type: none;
		overscroll-behavior: auto;
	}
}

/* Reviews carousel is swipe-only below desktop — keep pan-x even on fine-pointer tablets */
@media (max-width: 1023px) {
	.et-reviews-block__grid[data-carousel-track] {
		touch-action: pan-x !important;
		overflow-y: hidden !important;
		overscroll-behavior-x: contain;
		overscroll-behavior-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

.eligetu-gallery.is-swiping .eligetu-gallery__main-img {
	transition: none;
	user-select: none;
}

.eligetu-add-to-cart-btn.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.eligetu-add-to-cart-btn.is-added {
	background: var(--color-gold) !important;
}
