/* Frill Thrills — Best Sellers slider */

.ft-bs {
	--ft-bs-gap: 18px;
	--ft-bs-cols: 4;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 8px 20px 36px;
	box-sizing: border-box;
}

.ft-bs__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 18px;
	margin-bottom: 28px;
}

.ft-bs__title {
	margin: 0;
	font-size: clamp(1.6rem, 2.4vw, 2rem);
	font-weight: 700;
	color: #111;
	line-height: 1.2;
}

.ft-bs__view-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	background: #6b1a2a;
	color: #fff !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.06em;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.ft-bs__view-all:hover {
	background: #f71358;
	color: #fff !important;
}

.ft-bs__slider {
	display: flex;
	align-items: stretch;
	gap: 8px;
	position: relative;
}

.ft-bs__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.ft-bs__track {
	display: flex;
	gap: var(--ft-bs-gap);
	width: max-content;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.ft-bs__slide {
	flex: 0 0 calc((100cqw - (var(--ft-bs-gap) * (var(--ft-bs-cols) - 1))) / var(--ft-bs-cols));
	width: calc((100cqw - (var(--ft-bs-gap) * (var(--ft-bs-cols) - 1))) / var(--ft-bs-cols));
	max-width: calc((100cqw - (var(--ft-bs-gap) * (var(--ft-bs-cols) - 1))) / var(--ft-bs-cols));
	box-sizing: border-box;
}

.ft-bs__viewport {
	container-type: inline-size;
}

.ft-bs__slide .ft-pg-card {
	height: 100%;
}

.ft-bs__nav {
	flex: 0 0 auto;
	align-self: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e0e0e0;
	background: #fff;
	color: #444;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	z-index: 2;
}

.ft-bs__nav:hover {
	background: #fff5f8;
	border-color: #f9b4c8;
	color: #f71358;
}

.ft-bs__nav:disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* Sit cleanly under Elementor Best Sellers header */
.elementor-element-415de9d + .ft-bs,
.elementor-element-415de9d ~ .ft-bs {
	margin-top: -8px;
}

@media (max-width: 1100px) {
	.ft-bs {
		--ft-bs-cols: 3;
	}
}

@media (max-width: 767px) {
	.ft-bs {
		--ft-bs-cols: 2;
		padding-left: 12px;
		padding-right: 12px;
	}

	.ft-bs__nav {
		width: 34px;
		height: 34px;
	}

	/* Show Best Sellers header on mobile too when our slider is present */
	.elementor-element-415de9d.elementor-hidden-mobile {
		display: block !important;
	}
}

@media (max-width: 480px) {
	.ft-bs {
		--ft-bs-cols: 1;
	}
}
