/* Vitrin Touch — Frontend slider */
.vt-slider {
	--vt-ratio: 3 / 4;
	--vt-gap: 12px;
	--vt-frac: 0.8;
	--vt-radius: 16px;
	--vt-max: 420px;
	--vt-prod: 76px;
	position: relative;
	width: 100%;
	margin: 0 auto;
}

/* Track: horizontal scroll-snap */
.vt-track {
	display: flex;
	gap: var(--vt-gap);
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding-inline: 16px;
	scroll-padding-inline-start: 16px;
}
.vt-track::-webkit-scrollbar { display: none; }
.vt-track.is-dragging { scroll-snap-type: none; cursor: grabbing; }

/* Slide */
.vt-slide {
	position: relative;
	flex: 0 0 calc(100% * var(--vt-frac) - var(--vt-gap));
	max-width: calc(100% * var(--vt-frac) - var(--vt-gap));
	aspect-ratio: var(--vt-ratio);
	border-radius: var(--vt-radius);
	overflow: hidden;
	scroll-snap-align: start;
	background: #f0f0f1;
	isolation: isolate;
}

/* On wider screens, cap slide width so it doesn't get huge */
@media ( min-width: 782px ) {
	.vt-slide {
		flex-basis: calc( var(--vt-max) * var(--vt-frac) );
		max-width: calc( var(--vt-max) * var(--vt-frac) );
	}
}

/* Background */
.vt-bg { position: absolute; inset: 0; z-index: 1; }
.vt-bg-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-bg-video { overflow: hidden; }
.vt-video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Whole-slide link layer */
.vt-slide-link {
	position: absolute; inset: 0; z-index: 3;
	display: block; text-indent: -9999px; overflow: hidden;
}

/* Overlay */
.vt-overlay { position: absolute; inset: 0; z-index: 2; background: #000; pointer-events: none; }

/* Text */
.vt-text {
	position: absolute; inset: 0; z-index: 4;
	display: flex; flex-direction: column; gap: 8px;
	padding: 7%; pointer-events: none;
}
.vt-text.vt-v-top { justify-content: flex-start; }
.vt-text.vt-v-center { justify-content: center; }
.vt-text.vt-v-bottom { justify-content: flex-end; }
.vt-text.vt-h-start { align-items: flex-start; text-align: start; }
.vt-text.vt-h-center { align-items: center; text-align: center; }
.vt-text.vt-h-end { align-items: flex-end; text-align: end; }

.vt-title {
	font-size: var(--vt-title-size, 34px);
	color: var(--vt-title-color, #fff);
	font-weight: 800; line-height: 1.15; margin: 0; word-break: break-word;
    font-family: var(--vt-title-font, inherit);
}
.vt-sub {
	font-size: var(--vt-sub-size, 18px);
	color: var(--vt-sub-color, #fff);
	font-weight: 500; line-height: 1.25; margin: 0; word-break: break-word;
    font-family: var(--vt-sub-font, inherit);
}
.vt-has-shadow .vt-title,
.vt-has-shadow .vt-sub { text-shadow: 0 1px 4px rgba(0,0,0,.7); }

/* Video button */
.vt-vidbtn {
	position: absolute; inset-inline-end: 10px; bottom: 10px; z-index: 5;
	width: 34px; height: 34px; border: 0; border-radius: 50%;
	background: rgba(0,0,0,.55); color: #fff; cursor: pointer;
	font-size: 13px; line-height: 34px; text-align: center; padding: 0;
}
.vt-vidbtn:hover { background: rgba(0,0,0,.75); }
.vt-vidbtn .vt-vid-play { display: none; }
.vt-vidbtn[data-state="paused"] .vt-vid-pause { display: none; }
.vt-vidbtn[data-state="paused"] .vt-vid-play { display: inline; }

/* Products */
.vt-products {
	position: absolute; inset-inline: 7%; bottom: 7%; z-index: 5;
	display: flex; gap: 8px;
}
.vt-products.is-grid { flex-wrap: wrap; max-width: 70%; }
.vt-product {
	position: relative; display: block; flex: 0 0 auto;
	width: var(--vt-prod, 76px); height: var(--vt-prod, 76px);
	border-radius: 12px; overflow: hidden;
	background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.vt-product-thumb {
	position: absolute; inset: 0; background-size: cover; background-position: center;
}
.vt-badge {
	position: absolute; inset-inline-start: 4px; bottom: 4px; z-index: 2;
	color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
	padding: 3px 6px; border-radius: 20px;
}

/* Dots */
.vt-dots {
	display: flex; justify-content: center; gap: 6px; margin-top: 12px;
}
.vt-dots button {
	width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
	background: #c3c4c7; cursor: pointer; transition: all .2s ease;
}
.vt-dots button.is-active { background: #1d2327; width: 20px; border-radius: 5px; }

/* Reduced motion */
@media ( prefers-reduced-motion: reduce ) {
	.vt-track { scroll-behavior: auto; }
}

/* Hide the whole slider on desktop when requested */
@media ( min-width: 782px ) {
	.vt-slider.vt-hide-desktop { display: none !important; }
}
