/* [bsa_latest_products_slider] — auto-scrolling latest products strip.
   Enqueued unconditionally (see functions.php) rather than printed inline
   by the shortcode itself: Elementor's Shortcode widget (and most caching/
   minification layers) strip <style> tags found in body content, which
   silently killed both the animation and all card styling when the
   shortcode was dropped into an Elementor widget on the live page. */

.bsa-lps-wrap {
	overflow: hidden;
	width: 100%;
	/* pan-y is what makes the strip swipeable without trapping the page: the
	   browser keeps vertical scrolling for itself and hands us horizontal
	   gestures. Without it, a diagonal swipe on a phone either scrolls the page
	   when the user meant to browse products, or fights the drag handler. */
	touch-action: pan-y;
}
.bsa-lps-track {
	display: flex;
	gap: 20px;
	width: max-content;
	/* The keyframe animation is the no-JavaScript fallback and stays the default.
	   latest-products-slider.js adds .bsa-lps-js once it has taken over, which
	   switches this off. See that file's header for why it had to. */
	animation: bsa-lps-scroll var(--bsa-lps-duration, 30s) linear infinite;
}
.bsa-lps-wrap:hover .bsa-lps-track { animation-play-state: paused; }
@keyframes bsa-lps-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ---- JavaScript in control: same movement, now draggable ---- */
.bsa-lps-js .bsa-lps-track {
	animation: none;
	will-change: transform;
}
.bsa-lps-js { cursor: grab; }
.bsa-lps-js.bsa-lps-dragging { cursor: grabbing; }
/* Text selection turns a drag into a highlight, and the browser's own image
   drag would steal the gesture on desktop. */
.bsa-lps-js .bsa-lps-card {
	-webkit-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
}
.bsa-lps-js .bsa-lps-img { -webkit-user-drag: none; pointer-events: none; }
/* While dragging, suppress the hover zoom so the card does not scale under the
   finger on a touch device that reports itself as hovering. */
.bsa-lps-js.bsa-lps-dragging .bsa-lps-img { transform: none; }
.bsa-lps-card {
	position: relative;
	display: block;
	flex: 0 0 320px;
	height: 420px;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none !important;
}
.bsa-lps-img {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.bsa-lps-card:hover .bsa-lps-img { transform: scale(1.045); }
.bsa-lps-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 35%, rgba(0,0,0,0.15) 65%, transparent 85%);
}
.bsa-lps-arrow {
	position: absolute;
	right: 18px;
	bottom: 18px;
	z-index: 2;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid rgba(255,255,255,0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.bsa-lps-card:hover .bsa-lps-arrow { background: #fff; color: #100F0D; border-color: #fff; }
.bsa-lps-info {
	position: absolute;
	left: 20px;
	right: 66px;
	bottom: 20px;
	z-index: 2;
}
.bsa-lps-name {
	display: block;
	font-family: "Roboto Serif", Georgia, serif;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.25;
	color: #F4EEE1;
}
.bsa-lps-price {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	font-family: "Roboto Serif", sans-serif;
	color: rgba(244, 238, 225, 0.75);
}
.bsa-lps-price del { opacity: 0.6; margin-right: 6px; font-weight: 400; }
.bsa-lps-price ins { text-decoration: none; }

@media (max-width: 900px) {
	.bsa-lps-card { flex-basis: 260px; height: 340px; }
	.bsa-lps-name { font-size: 18px; }
}
@media (max-width: 560px) {
	.bsa-lps-track { gap: 14px; }
	.bsa-lps-card { flex-basis: 210px; height: 280px; border-radius: 12px; }
	.bsa-lps-name { font-size: 15px; }
	.bsa-lps-price { font-size: 11px; }
	.bsa-lps-arrow { width: 32px; height: 32px; font-size: 14px; right: 14px; bottom: 14px; }
	.bsa-lps-info { left: 14px; right: 54px; bottom: 14px; }
}
