/**
 * Featured products carousel — 1 / 3 / 5 visible (phone / tablet / desktop).
 * No section background — put colour on the Elementor container instead.
 */

.fp-featured-products {
	width: 100%;
	max-width: 100%;
	background: transparent;
}

.fp-featured-products.fp-shop-content,
.fp-featured-products .products,
.fp-featured-carousel,
.fp-featured-carousel__viewport,
.fp-featured-carousel__track {
	background: transparent !important;
	background-color: transparent !important;
}

.fp-featured-carousel {
	--fp-featured-gap: 12px;
	--fp-featured-visible: 1;
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 0.5rem;
	width: 100%;
}

.fp-featured-carousel__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

.fp-featured-carousel__track {
	display: flex !important;
	flex-wrap: nowrap !important;
	grid-template-columns: none !important;
	gap: var(--fp-featured-gap) !important;
	margin: 0 !important;
	padding: 0.25rem 0 0.75rem !important;
	list-style: none !important;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.fp-featured-carousel__track::-webkit-scrollbar {
	display: none;
}

.fp-featured-carousel__track::before,
.fp-featured-carousel__track::after {
	display: none !important;
	content: none !important;
}

.fp-featured-carousel__track > li.product,
.fp-featured-carousel__track > li.fp-shop-card-container {
	box-sizing: border-box;
	flex: 0 0 calc(
		(100% - (var(--fp-featured-visible) - 1) * var(--fp-featured-gap)) / var(--fp-featured-visible)
	) !important;
	width: calc(
		(100% - (var(--fp-featured-visible) - 1) * var(--fp-featured-gap)) / var(--fp-featured-visible)
	) !important;
	max-width: none !important;
	min-width: 0 !important;
	margin: 0 !important;
	float: none !important;
	clear: none !important;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.fp-featured-carousel__nav {
	flex: 0 0 auto;
	align-self: center;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 1px solid var(--fp-border, rgba(0, 0, 0, 0.15));
	border-radius: 999px;
	background: var(--fp-card-bg, #fffff8);
	color: var(--fp-text, #171717);
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	box-shadow: var(--fp-shadow-sm, 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075));
}

.fp-featured-carousel__nav:hover,
.fp-featured-carousel__nav:focus-visible {
	opacity: 0.9;
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.fp-featured-carousel__nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.fp-featured-carousel.is-single .fp-featured-carousel__nav {
	display: none;
}

/* Tablet: 3 cards */
@media (min-width: 768px) {
	.fp-featured-carousel {
		--fp-featured-visible: 3;
		--fp-featured-gap: 12px;
	}
}

/* Desktop: 5 cards */
@media (min-width: 1200px) {
	.fp-featured-carousel {
		--fp-featured-visible: 5;
		--fp-featured-gap: 10px;
	}
}

/* Narrow phones: hide side arrows, rely on swipe */
@media (max-width: 479px) {
	.fp-featured-carousel__nav {
		display: none;
	}
}
