/* LDWD Review Slider */
.ldwd-rs {
	position: relative;
	--ldwd-spv: 3;
	--ldwd-gap: 24px;
}
.ldwd-rs .swiper {
	overflow: hidden;
}
.ldwd-rs .swiper-wrapper {
	display: flex;
	box-sizing: content-box;
}
/* Slide width is pure CSS: Elementor's responsive controls set --ldwd-spv and
   --ldwd-gap per device via its own media queries, so the visible slide count
   always matches the editor regardless of Swiper version or JS timing. */
.ldwd-rs .swiper-slide {
	flex-shrink: 0;
	position: relative;
	height: auto;
	box-sizing: border-box;
	width: calc( (100% - (var(--ldwd-spv) - 1) * var(--ldwd-gap)) / var(--ldwd-spv) );
}
.ldwd-rs-item {
	height: 100%;
	box-sizing: border-box;
}
.ldwd-rs-stars {
	line-height: 1;
}
.ldwd-rs-text p:last-child {
	margin-bottom: 0;
}
.ldwd-rs-arrow {
	position: absolute;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s ease;
	user-select: none;
}
.ldwd-rs-dots {
	position: static;
	margin-top: 16px;
	text-align: center;
}

/* LDWD Product Image Slider */
.ldwd-pis {
	position: relative;
	--ldwd-pis-thumb-cols: 5;
	--ldwd-pis-thumb-gap: 10px;
}
.ldwd-pis-main {
	position: relative;
}
.ldwd-pis-main .swiper {
	overflow: hidden;
	border-radius: inherit;
}
.ldwd-pis-main-slide {
	width: 100%;
	overflow: hidden;
}
.ldwd-pis-main-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ldwd-pis-badge {
	position: absolute;
	z-index: 5;
	top: 16px;
	left: 16px;
	display: inline-block;
	line-height: 1.2;
}
.ldwd-pis-badge-top-left .ldwd-pis-badge    { right: auto !important; bottom: auto !important; }
.ldwd-pis-badge-top-right .ldwd-pis-badge   { left: auto !important; bottom: auto !important; }
.ldwd-pis-badge-bottom-left .ldwd-pis-badge { right: auto !important; top: auto !important; }
.ldwd-pis-badge-bottom-right .ldwd-pis-badge{ left: auto !important; top: auto !important; }
.ldwd-pis-thumbs {
	margin-top: var( --ldwd-pis-thumb-gap );
}
.ldwd-pis-thumbs .swiper {
	overflow: hidden;
}
.ldwd-pis-thumbs .swiper-wrapper {
	display: flex;
	box-sizing: content-box;
}
.ldwd-pis-thumbs .swiper-slide {
	flex-shrink: 0;
	box-sizing: border-box;
	cursor: pointer;
	width: calc( (100% - (var(--ldwd-pis-thumb-cols) - 1) * var(--ldwd-pis-thumb-gap)) / var(--ldwd-pis-thumb-cols) );
}
.ldwd-pis-thumb-slide {
	overflow: hidden;
	opacity: 0.6;
	transition: opacity 0.25s ease, border-color 0.25s ease;
	box-sizing: border-box;
}
.ldwd-pis-thumb-slide img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ldwd-pis-thumbs .swiper-slide-thumb-active .ldwd-pis-thumb-slide {
	opacity: 1;
}
.ldwd-pis-arrow {
	position: absolute;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s ease;
	user-select: none;
}

/* Breadcrumb widget */
.ldwd-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.ldwd-breadcrumb-item a {
	text-decoration: none;
	transition: color 0.2s ease;
}
.ldwd-breadcrumb-separator {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

/* Taxonomy Icon List widget */
.ldwd-tax-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
}
.ldwd-tax-item {
	display: flex;
	align-items: center;
	text-decoration: none;
	transition: color 0.2s ease;
}
.ldwd-tax-item-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	line-height: 1;
}
.ldwd-tax-item-label {
	white-space: nowrap;
}
.ldwd-tax-item-count {
	opacity: 0.8;
}

/* Taxonomy Slider widget */
.ldwd-tax-slider-heading {
	margin: 0;
}
.ldwd-tax-slide {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
}
.ldwd-tax-slide-image {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	overflow: hidden;
	flex-shrink: 0;
}
.ldwd-tax-slide-image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.ldwd-tax-slide-label {
	white-space: nowrap;
}
.ldwd-tax-slide-count {
	opacity: 0.8;
}

/* Grid mode */
.ldwd-tax-slider-grid {
	display: grid;
	grid-template-columns: repeat(8, 1fr);
}

/* Slider mode */
.ldwd-tax-slider {
	--ldwd-ts-spv: 6;
	--ldwd-ts-gap: 24px;
	position: relative;
}
.ldwd-tax-slider-swiper {
	overflow: hidden;
}
.ldwd-tax-slider-swiper .swiper-slide {
	width: calc( ( 100% - ( var(--ldwd-ts-spv) - 1 ) * var(--ldwd-ts-gap) ) / var(--ldwd-ts-spv) );
	flex-shrink: 0;
}
.ldwd-tax-slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.ldwd-tax-slider-prev {
	left: -10px;
}
.ldwd-tax-slider-next {
	right: -10px;
}
.ldwd-tax-slider-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}
.ldwd-tax-slider-dots .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	opacity: 1;
	cursor: pointer;
}

/* Marquee widget — pure CSS, no JS/library needed */
.ldwd-marquee {
	overflow: hidden;
	--ldwd-mq-duration: 25s;
	--ldwd-mq-copies: 4;
}
.ldwd-marquee-track {
	display: flex;
	width: max-content;
	animation: ldwd-marquee-left var(--ldwd-mq-duration) linear infinite;
	will-change: transform;
}
.ldwd-marquee-dir-right .ldwd-marquee-track {
	animation-name: ldwd-marquee-right;
}
.ldwd-marquee-pause-hover:hover .ldwd-marquee-track {
	animation-play-state: paused;
}
.ldwd-marquee-group {
	display: flex;
	flex-shrink: 0;
}
.ldwd-marquee-item {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}
.ldwd-marquee-item-icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}
@keyframes ldwd-marquee-left {
	from { transform: translateX(0); }
	to { transform: translateX(calc(-100% / var(--ldwd-mq-copies))); }
}
@keyframes ldwd-marquee-right {
	from { transform: translateX(calc(-100% / var(--ldwd-mq-copies))); }
	to { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
	.ldwd-marquee-track {
		animation: none;
	}
}
