/* ================================================================
   Sale Product Carousel (pchsalecarousel) — storefront styles
   Rendered at the top of #wrapper, above the hero slider.
   All rules are scoped to .section-salecarousel (no theme-wide impact).
   ================================================================ */

.section-salecarousel {
	margin-top: 1.25rem;
	margin-bottom: 1.75rem;
	position: relative;
}

/* Card content: the carousel uses the standard product.tpl miniature
   (p-m-v1) — the same one used across the catalogue — so the price,
   "Ihr Spar-Preis" and MwSt line render natively in the card body, after
   the name, with no hover trick and no extra CSS needed. */

/* ----------------------------------------------------------------
   Prominent nav arrows on desktop + tablet.
   The theme leaves them at opacity:0.2 unless the section is hovered
   (so on touch/tablet they look absent). Force them visible + larger.
   The chevron SVG has hard-coded 18x18, so it must be scaled here too.
   ---------------------------------------------------------------- */
.section-salecarousel .slick-arrow {
	opacity: 1 !important;
}
.section-salecarousel .items-slick .btn.slick-arrow i {
	font-size: 2.4rem;
	border: 2px solid #3c4448;
	background: #fff;
	color: #3c4448;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.section-salecarousel .items-slick .btn.slick-arrow i:has(> svg) {
	width: 1.05em;
	height: 1.05em;
	padding: 9px;
}
.section-salecarousel .items-slick .btn.slick-arrow svg {
	width: 26px;
	height: 26px;
}
.section-salecarousel .items-slick .btn.slick-arrow:hover i {
	background: #3c4448;
	color: #fff;
}

/* Centered CTA button spacing */
.section-salecarousel .pchsc-cta {
	clear: both;
}
.section-salecarousel .pchsc-cta .btn.pchsc-cta-btn {
	min-width: 180px;
	padding-left: 2rem;
	padding-right: 2rem;
	text-transform: uppercase;
	letter-spacing: .04em;
}

/* ----------------------------------------------------------------
   Anti-CLS: before Slick initialises, lay the items out in a single
   non-wrapping row (roughly the final column count) instead of a tall
   vertical stack, so there is no layout jump when Slick kicks in.
   ---------------------------------------------------------------- */
.section-salecarousel .items-slick:not(.slick-initialized) {
	display: flex;
	flex-wrap: nowrap;
	overflow: hidden;
}
.section-salecarousel .items-slick:not(.slick-initialized) > * {
	flex: 0 0 25% !important;
	max-width: 25% !important;
	width: 25% !important;
}
/* Hard-cap the rendered count so the pre-init layout can never show more than
   Slick's slidesToShow, regardless of any theme width rule. */
.section-salecarousel .items-slick:not(.slick-initialized) > *:nth-child(n+5) {
	display: none !important;
}
@media (max-width: 991px) {
	.section-salecarousel .items-slick:not(.slick-initialized) > * {
		flex: 0 0 33.3333% !important;
		max-width: 33.3333% !important;
		width: 33.3333% !important;
	}
	.section-salecarousel .items-slick:not(.slick-initialized) > *:nth-child(n+4) {
		display: none !important;
	}
}
@media (max-width: 767px) {
	.section-salecarousel .items-slick:not(.slick-initialized) > * {
		flex: 0 0 50% !important;
		max-width: 50% !important;
		width: 50% !important;
	}
	.section-salecarousel .items-slick:not(.slick-initialized) > *:nth-child(n+3) {
		display: none !important;
	}
}

/* ----------------------------------------------------------------
   Mobile: ~1.2 products visible (peek of the next card) + swipe.
   variableWidth is enabled at this breakpoint, so the slide width is
   driven by CSS here. Arrows off on mobile — swipe only.
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
	.section-salecarousel .items-slick .slick-slide {
		width: 82vw;
		max-width: 340px;
	}
	.section-salecarousel .items-slick .slick-slide > .product-miniature,
	.section-salecarousel .items-slick .slick-slide .product-miniature {
		height: 100%;
	}
	.section-salecarousel .items-slick:not(.slick-initialized) > * {
		flex: 0 0 82vw !important;
		max-width: 340px !important;
		width: 82vw !important;
	}
	.section-salecarousel .slick-prev,
	.section-salecarousel .slick-next {
		display: none !important;
	}
}
