/* Bundles V4 — horizontal polaroid reel */

.bundle-v4-section {
	padding: clamp(3rem, 6vw, 4.5rem) 0;
	background:
		radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--primary-brand-color) 10%, transparent) 0%, transparent 42%),
		radial-gradient(circle at 88% 82%, color-mix(in srgb, var(--secondary-brand-color) 8%, transparent) 0%, transparent 38%),
		var(--secondary-background-color);
	overflow: hidden;
}

.bundle-v4-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem;
	margin-bottom: clamp(1.5rem, 3vw, 2rem);
	flex-wrap: wrap;
}

.bundle-v4-kicker {
	margin: 0 0 0.35rem;
	font-size: 0.6875rem;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sc-bundles-v4-bundle-v4-kicker-text, var(--primary-brand-color));
}

.bundle-v4-header h2 {
	margin: 0;
	font-size: clamp(1.65rem, 3.5vw, 2.35rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: var(--sc-bundles-v4-bundle-v4-header-heading-text, var(--primary-title-color));
}

.bundle-v4-lead {
	margin: 0.45rem 0 0;
	max-width: 28rem;
	font-size: 0.9375rem;
	line-height: 1.6;
	color: var(--sc-bundles-v4-bundle-v4-lead-text, var(--primary-text-color));
	opacity: 0.82;
}

.bundle-v4-view-all {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.65rem 1.1rem;
	border: 1px solid var(--sc-bundles-v4-bundle-v4-view-all-border, color-mix(in srgb, var(--primary-brand-color) 35%, transparent));
	border-radius: 999px;
	background: var(--sc-bundles-v4-bundle-v4-view-all-bg, color-mix(in srgb, var(--primary-background-color) 88%, transparent));
	color: var(--sc-bundles-v4-bundle-v4-view-all-text, var(--primary-title-color));
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.bundle-v4-view-all:hover,
.bundle-v4-view-all:focus-visible {
	transform: translateY(-1px);
	border-color: var(--sc-bundles-v4-bundle-v4-view-all-hover-border, var(--primary-brand-color));
	background: var(--sc-bundles-v4-bundle-v4-view-all-hover-bg, var(--primary-brand-color));
	color: var(--sc-bundles-v4-bundle-v4-view-all-hover-text, var(--primary-button-text-color));
}

.bundle-v4-section .view-all-desktop {
	display: inline-flex;
}

.bundle-v4-section .view-all-mobile {
	display: none !important;
}

.bundle-v4-reel-wrap {
	position: relative;
}

.bundle-v4-reel {
	display: flex;
	gap: clamp(1rem, 3vw, 1.75rem);
	overflow-x: auto;
	overflow-y: hidden;
	padding: 1.25rem clamp(0.25rem, 2vw, 0.75rem) 1.75rem;
	margin: 0 calc(-1 * clamp(0.75rem, 3vw, 1.25rem));
	scroll-snap-type: x mandatory;
	scroll-padding-inline: clamp(0.75rem, 3vw, 1.25rem);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--primary-brand-color) 45%, transparent) transparent;
}

.bundle-v4-reel::-webkit-scrollbar {
	height: 6px;
}

.bundle-v4-reel::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: var(--sc-bundles-v4-bundle-v4-reel-bg, color-mix(in srgb, var(--primary-brand-color) 45%, transparent));
}

.bundle-v4-polaroid {
	flex: 0 0 min(78vw, 19.5rem);
	scroll-snap-align: center;
	transform: rotate(var(--bundle-v4-tilt, 0deg));
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.bundle-v4-polaroid__link {
	display: grid;
	gap: 0.85rem;
	text-decoration: none;
	color: inherit;
}

.bundle-v4-polaroid__frame {
	position: relative;
	padding: 0.85rem 0.85rem 2.75rem;
	background: var(--sc-bundles-v4-bundle-v4-polaroid-frame-bg, var(--primary-background-color));
	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.12),
		0 2px 0 color-mix(in srgb, var(--primary-brand-color) 12%, transparent);
}

.bundle-v4-polaroid__frame::after {
	content: '';
	position: absolute;
	left: 0.85rem;
	right: 0.85rem;
	bottom: 0.85rem;
	height: 1.5rem;
	background: linear-gradient(
		to bottom,
		color-mix(in srgb, var(--secondary-background-color) 70%, transparent),
		transparent
	);
	pointer-events: none;
}

.bundle-v4-polaroid__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	background: var(--sc-bundles-v4-bundle-v4-polaroid-image-bg, color-mix(in srgb, var(--secondary-background-color) 80%, var(--primary-background-color)));
}

.bundle-v4-polaroid__stamp {
	position: absolute;
	top: 1.35rem;
	right: 0.35rem;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 3.35rem;
	height: 3.35rem;
	border-radius: 50%;
	border: 2px dashed var(--sc-bundles-v4-bundle-v4-polaroid-stamp-border, color-mix(in srgb, var(--discount-badge-background-color, var(--primary-brand-color)) 75%, white));
	background: var(--sc-bundles-v4-bundle-v4-polaroid-stamp-bg, color-mix(in srgb, var(--discount-badge-background-color, var(--primary-brand-color)) 88%, transparent));
	color: var(--sc-bundles-v4-bundle-v4-polaroid-stamp-text, var(--discount-badge-text-color, var(--primary-button-text-color)));
	font-size: 0.6875rem;
	font-weight: 800;
	line-height: 1.05;
	text-align: center;
	transform: rotate(12deg);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.bundle-v4-polaroid__count {
	position: absolute;
	left: 1.1rem;
	bottom: 1.05rem;
	z-index: 2;
	padding: 0.28rem 0.55rem;
	border-radius: 999px;
	background: var(--sc-bundles-v4-bundle-v4-polaroid-count-bg, color-mix(in srgb, var(--overlay-color, #000) 72%, transparent));
	color: var(--sc-bundles-v4-bundle-v4-polaroid-count-text, var(--primary-button-text-color));
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.bundle-v4-polaroid__caption {
	display: grid;
	gap: 0.35rem;
	padding: 0 0.15rem;
}

.bundle-v4-polaroid__name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--sc-bundles-v4-bundle-v4-polaroid-name-text, var(--primary-title-color));
}

.bundle-v4-polaroid__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.45rem;
}

.bundle-v4-price-original {
	font-size: 0.8125rem;
	color: var(--sc-bundles-v4-bundle-v4-price-original-text, var(--original-price-color));
	text-decoration: line-through;
	opacity: 0.85;
}

.bundle-v4-price-final,
.bundle-v4-price-single {
	font-size: 1rem;
	font-weight: 800;
	color: var(--sc-bundles-v4-bundle-v4-price-final-text, var(--discount-price-color, var(--primary-brand-color)));
}

.bundle-v4-polaroid__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.15rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sc-bundles-v4-bundle-v4-polaroid-cta-text, color-mix(in srgb, var(--primary-brand-color) 82%, var(--primary-title-color)));
	transition: gap 0.25s ease, color 0.25s ease;
}

.bundle-v4-polaroid:hover,
.bundle-v4-polaroid:focus-within {
	transform: rotate(0deg) translateY(-6px);
}

.bundle-v4-polaroid__link:hover .bundle-v4-polaroid__cta,
.bundle-v4-polaroid__link:focus-visible .bundle-v4-polaroid__cta {
	gap: 0.65rem;
	color: var(--sc-bundles-v4-bundle-v4-polaroid-cta-hover-text, var(--primary-brand-color));
}

.bundle-v4-polaroid__link:focus-visible {
	outline: none;
}

.bundle-v4-polaroid__link:focus-visible .bundle-v4-polaroid__frame {
	outline: 3px solid var(--sc-bundles-v4-bundle-v4-polaroid-frame-focus-outline, var(--primary-brand-color));
	outline-offset: 3px;
}

.bundle-v4-reel-hint {
	display: none;
	margin: 0.35rem 0 0;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	font-size: 0.75rem;
	color: var(--sc-bundles-v4-bundle-v4-reel-hint-text, color-mix(in srgb, var(--primary-text-color) 70%, transparent));
}

@media (max-width: 768px) {
	.bundle-v4-section .view-all-desktop {
		display: none !important;
	}

	.bundle-v4-section .view-all-mobile {
		display: flex !important;
		margin-top: 0.5rem;
	}

	.bundle-v4-reel-hint {
		display: flex;
	}
}

[dir='rtl'] .bundle-v4-polaroid__stamp {
	right: auto;
	left: 0.35rem;
	transform: rotate(-12deg);
}

[dir='rtl'] .bundle-v4-polaroid__count {
	left: auto;
	right: 1.1rem;
}

[dir='rtl'] .bundle-v4-polaroid__cta i {
	transform: scaleX(-1);
}

@media (prefers-reduced-motion: reduce) {
	.bundle-v4-polaroid,
	.bundle-v4-view-all,
	.bundle-v4-polaroid__cta {
		transition: none;
	}

	.bundle-v4-polaroid {
		transform: none;
	}

	.bundle-v4-polaroid:hover,
	.bundle-v4-polaroid:focus-within {
		transform: none;
	}
}
