/* Kloofs Sale Carousel */
.ksc {
	--ksc-card-bg: #D7A75E;
	--ksc-card-texture: none;
	--ksc-img-h: 270px;
	--ksc-specs-bg: rgba(19, 32, 23, .6);
	--ksc-title: #132017;
	--ksc-desc: #000;
	--ksc-price-bg: #000;
	--ksc-btn-bg: #1E482B;
	--ksc-btn-bg-hover: #132017;
	--ksc-sale-bg: #F47A1F;
	--ksc-sale-border: #FF9A4D;
	--ksc-sale-specs-bg: #000;
	--ksc-sale-title: #000;
	--ksc-sale-desc: #1a0d00;
	--ksc-was: #3a1a00;
	--ksc-save: #fff;
	--ksc-now-bg: #000;
	--ksc-sale-btn-bg: #fff;
	--ksc-sale-btn-color: #000;
	--ksc-arrow-bg: #1E482B;
	--ksc-arrow-color: #D7A75E;
	--ksc-arrow-top: 250px;
	--ksc-dot: #fff;
	--ksc-dot-active: #132017;
	--ksc-sans: "Montserrat", sans-serif;
	--ksc-serif: "ivyora-display", serif;

	position: relative;
	width: 100%;
	padding: 0 24px;
	box-sizing: border-box;
}
.ksc *, .ksc *::before, .ksc *::after { box-sizing: border-box; }

/* ---------- Carousel shell ---------- */
.ksc .ksc-viewport { overflow: hidden; position: relative; width: 100%; padding: 6px 0 14px; }
.ksc .swiper-wrapper { display: flex; align-items: stretch; }
/* Elementor Pro's nested-carousel CSS sets overflow:hidden on any .swiper-wrapper it
   thinks is uninitialised, which clips every slide once Swiper moves the track. */
.ksc .ksc-viewport > .swiper-wrapper { overflow: visible !important; }
.ksc.ksc--ready .ksc-viewport > .swiper-wrapper { gap: 0 !important; }
.ksc .swiper-slide { height: auto; display: flex; flex-shrink: 0; }
/* Before Swiper starts, show the right number of cards (no layout jump). */
.ksc:not(.ksc--ready) .swiper-wrapper { gap: 20px; }
.ksc:not(.ksc--ready) .swiper-slide { width: calc((100% - 40px) / 3); }
@media (max-width: 1024px) { .ksc:not(.ksc--ready) .swiper-slide { width: calc((100% - 20px) / 2); } }
@media (max-width: 767px)  { .ksc:not(.ksc--ready) .swiper-slide { width: 100%; } }

.ksc-arrow {
	position: absolute;
	top: var(--ksc-arrow-top);
	z-index: 5;
	width: 40px;
	height: 40px;
	margin-top: -20px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--ksc-arrow-bg);
	color: var(--ksc-arrow-color);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform .2s ease, filter .2s ease;
}
.ksc-arrow:hover, .ksc-arrow:focus { background: var(--ksc-arrow-bg); color: var(--ksc-arrow-color); filter: brightness(1.2); }
.ksc-arrow svg { width: 14px; height: 14px; }
.ksc-prev { left: 0; }
.ksc-next { right: 0; }
.ksc-arrow.swiper-button-disabled { opacity: .35; cursor: default; }

.ksc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; position: static !important; }
.ksc-dots .swiper-pagination-bullet,
.ksc-dots .ksc-dot {
	width: 12px; height: 12px; margin: 0 !important; border-radius: 50%;
	background: var(--ksc-dot); opacity: 1; border: 0; padding: 0; cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}
.ksc-dots .swiper-pagination-bullet-active,
.ksc-dots .ksc-dot.is-active { background: var(--ksc-dot-active); transform: scale(1.1); }

/* ---------- Card (standard) ---------- */
.ksc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	padding: 10px;
	border-radius: 20px;
	background-color: var(--ksc-card-bg);
	background-image: var(--ksc-card-texture);
	background-size: cover;
	background-position: top center;
	isolation: isolate;
}
.ksc-overlay { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

.ksc-media { position: relative; width: 100%; }
.ksc-media picture { display: block; width: 100%; }
.ksc-img,
.ksc-media img:not(.ksc-badge) {
	display: block;
	width: 100% !important;
	height: var(--ksc-img-h) !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 20px;
}
.ksc-img--empty { background: rgba(0,0,0,.15); }

.ksc-specs {
	position: relative;
	z-index: 2;
	width: 95%;
	margin-top: -25px;
	padding: 10px 6px;
	border-radius: 20px;
	background: var(--ksc-specs-bg);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 4px 18px;
	pointer-events: none;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}
.ksc-spec { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-family: var(--ksc-sans); font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.ksc-spec-icon { display: inline-flex; width: 22px; height: 22px; color: #fff; }
.ksc-spec-icon svg, .ksc-spec-icon img { width: 100%; height: 100%; object-fit: contain; }

.ksc-body { display: flex; flex-direction: column; flex: 1 1 auto; width: 100%; }
.ksc-title {
	margin: 10px 0 0 5px;
	padding: 0;
	font-family: var(--ksc-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--ksc-title);
}
.ksc-desc { margin: 4px 0 0; color: var(--ksc-desc); font-weight: 600; font-size: 15px; line-height: 1.6; text-align: left; }

.ksc-foot { margin-top: auto; padding-top: 15px; position: relative; z-index: 2; }
.ksc-actions { display: flex; width: 100%; }
.ksc-price, .ksc-btn {
	flex: 1 1 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 12px;
	text-decoration: none;
	text-align: center;
	line-height: 1.1;
}
.ksc-price {
	background: var(--ksc-price-bg);
	color: #fff;
	font-family: var(--ksc-sans);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 3.8px;
	border-radius: 20px 0 0 20px;
}
.ksc-btn,
.ksc-btn:visited {
	background: var(--ksc-btn-bg);
	color: #fff;
	font-family: var(--ksc-serif);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 1.5px;
	border-radius: 0 20px 20px 0;
	transition: background .2s ease;
}
.ksc-btn:hover, .ksc-btn:focus { background: var(--ksc-btn-bg-hover); color: #fff; }

/* ---------- Sale card (Halloween) ---------- */
.ksc-card.is-sale {
	background: var(--ksc-sale-bg);
	box-shadow: 0 0 0 3px var(--ksc-sale-border) inset, 0 8px 24px rgba(0,0,0,.35);
}
.ksc--glow .ksc-card.is-sale { animation: ksc-glow 2.8s ease-in-out infinite; }
@keyframes ksc-glow {
	0%, 100% { box-shadow: 0 0 0 3px var(--ksc-sale-border) inset, 0 8px 24px rgba(0,0,0,.35), 0 0 0 rgba(244,122,31,0); }
	50%      { box-shadow: 0 0 0 3px var(--ksc-sale-border) inset, 0 8px 24px rgba(0,0,0,.35), 0 0 26px rgba(255,140,40,.75); }
}
@media (prefers-reduced-motion: reduce) { .ksc--glow .ksc-card.is-sale { animation: none; } }

.ksc-card.is-sale .ksc-specs { background: var(--ksc-sale-specs-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.ksc-card.is-sale .ksc-title { color: var(--ksc-sale-title); }
.ksc-card.is-sale .ksc-desc { color: var(--ksc-sale-desc); }

.ksc-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 90px;
	height: auto;
	pointer-events: none;
	filter: drop-shadow(0 3px 6px rgba(0,0,0,.4));
	transform: rotate(4deg);
}
.ksc-badge--text {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / .8;
	padding: 6px;
	border-radius: 12px;
	border: 3px solid var(--ksc-sale-bg);
	background: #000;
	color: #fff;
	font-family: "Impact", "Anton", "Arial Black", sans-serif;
	font-weight: 900;
	font-size: 17px;
	line-height: .95;
	text-transform: uppercase;
	text-align: center;
	letter-spacing: .5px;
}

.ksc-was-row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	margin: 0 0 8px 6px;
	font-family: var(--ksc-sans);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}
.ksc-was { color: var(--ksc-was); }
.ksc-was s { text-decoration-thickness: 2px; }
.ksc-now-label { margin-right: .35em; }
.ksc-save { color: var(--ksc-save); font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.25); }

.ksc-card.is-sale .ksc-price {
	background: var(--ksc-now-bg);
	letter-spacing: .5px;
	font-weight: 700;
	font-size: 18px;
	flex-basis: 58%;
	justify-content: flex-start;
	padding-left: 18px;
	white-space: nowrap;
}
.ksc-card.is-sale .ksc-btn,
.ksc-card.is-sale .ksc-btn:visited {
	flex-basis: 42%;
	background: var(--ksc-sale-btn-bg);
	color: var(--ksc-sale-btn-color);
	font-family: var(--ksc-sans);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
}
.ksc-card.is-sale .ksc-btn:hover { background: #000; color: #fff; }

/* Halloween decoration */
.ksc-web, .ksc-bats { position: absolute; z-index: 3; pointer-events: none; color: rgba(255,255,255,.85); }
.ksc-web { top: 0; left: 0; width: 74px; height: 74px; border-top-left-radius: 20px; overflow: hidden; }
.ksc-web svg { width: 100%; height: 100%; }
.ksc-bats { top: calc(var(--ksc-img-h) + 34px); right: 14px; width: 50px; color: #000; opacity: .85; animation: ksc-bat 3.2s ease-in-out infinite; }
.ksc-bats svg { width: 100%; height: auto; }
@keyframes ksc-bat { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-5px) rotate(4deg); } }
@media (prefers-reduced-motion: reduce) { .ksc-bats { animation: none; } }

.ksc-empty { padding: 20px; text-align: center; background: #f5f5f5; border: 1px dashed #ccc; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.ksc-actions { flex-direction: column; }
	.ksc-price, .ksc-card.is-sale .ksc-price { border-radius: 20px 20px 0 0; justify-content: center; padding-left: 12px; }
	.ksc-btn, .ksc-card.is-sale .ksc-btn { border-radius: 0 0 20px 20px; }
}
@media (max-width: 767px) {
	.ksc { padding: 0 8px; }
	.ksc-specs { margin-top: -35px; }
	.ksc-title { text-align: center; font-size: 26px; margin-left: 0; }
	.ksc-desc { text-align: center; font-size: 16px; }
	.ksc-was-row { justify-content: center; margin-left: 0; }
	.ksc-prev { left: -4px; }
	.ksc-next { right: -4px; }
	.ksc-bats { display: none; }
}
.ksc-img--empty { display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #fff; font: 600 13px/1.4 var(--ksc-sans); }
