/* SJV Home Sliders – front end
   Inherits the theme's fonts and text colour; only the accent is configurable. */

.sjv-hs {
	--sjv-accent: #b8934a;
	--sjv-ratio: 1/1;
	--sjv-radius: 4px;
	--sjv-paper: #f8f5ef;
	position: relative;
	width: 100%;
	padding: 64px 0 56px;
	box-sizing: border-box;
}
.sjv-hs *,
.sjv-hs *::before,
.sjv-hs *::after {
	box-sizing: border-box;
}
.sjv-hs__inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Heading ---------- */
.sjv-hs__head {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 40px;
}
.sjv-hs .sjv-hs__title {
	margin: 0;
	padding: 0;
	font-size: clamp(22px, 2.6vw, 34px);
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: inherit;
}
.sjv-hs--serif .sjv-hs__title {
	font-family: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
	font-weight: 500;
	letter-spacing: 0.12em;
}
.sjv-hs__orn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 18px 0 14px;
}
.sjv-hs__orn::before,
.sjv-hs__orn::after {
	content: "";
	width: 64px;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--sjv-accent));
}
.sjv-hs__orn::after {
	transform: scaleX(-1);
}
.sjv-hs__orn i {
	display: block;
	width: 9px;
	height: 9px;
	background: var(--sjv-accent);
	transform: rotate(45deg);
}
.sjv-hs .sjv-hs__sub {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: inherit;
	opacity: 0.62;
}

/* ---------- Slider shell ---------- */
.sjv-hs__wrap {
	position: relative;
}
.sjv-hs__swiper {
	overflow: hidden;
	padding: 4px 2px 8px;
}
.sjv-hs .swiper-slide {
	height: auto;
}

/* ---------- Card ---------- */
.sjv-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.sjv-card__top {
	position: relative;
}
.sjv-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: var(--sjv-ratio);
	background: var(--sjv-paper);
	border-radius: var(--sjv-radius);
}
.sjv-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
	pointer-events: none;
	z-index: 2;
}
.sjv-card__link {
	display: block;
	width: 100%;
	height: 100%;
}
.sjv-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	margin: 0;
	transition: transform 1s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.6s ease;
}
.sjv-card .sjv-card__img--hover {
	opacity: 0;
}
.sjv-card:hover .sjv-card__img--hover {
	opacity: 1;
}
.sjv-card:hover .sjv-card__media img {
	transform: scale(1.06);
}

/* Badge */
.sjv-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	padding: 6px 12px;
	background: var(--sjv-accent);
	color: #fff;
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	border-radius: 99px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Add to cart – slides up over the image */
.sjv-card__actions {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 3;
	opacity: 0;
	transform: translateY(14px);
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}
.sjv-card:hover .sjv-card__actions,
.sjv-card:focus-within .sjv-card__actions {
	opacity: 1;
	transform: none;
}
.sjv-hs .sjv-btn {
	display: block;
	width: 100%;
	margin: 0;
	padding: 13px 14px;
	text-align: center;
	background: rgba(255, 255, 255, 0.96);
	color: #1d1d1f;
	border: 0;
	border-radius: calc(var(--sjv-radius) * 0.6);
	font-size: 11.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
	transition: background 0.25s ease, color 0.25s ease;
}
.sjv-hs .sjv-btn:hover,
.sjv-hs .sjv-btn:focus {
	background: var(--sjv-accent);
	color: #fff;
}
.sjv-hs .sjv-btn.loading {
	opacity: 0.6;
	pointer-events: none;
}
.sjv-hs .sjv-btn.added::after {
	content: " \2713";
}
.sjv-hs .added_to_cart {
	display: none !important;
}

/* Text under the image */
.sjv-card__body {
	padding: 16px 6px 0;
	text-align: center;
}
.sjv-card__cat {
	display: block;
	margin-bottom: 6px;
	font-size: 10.5px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	opacity: 0.55;
}
.sjv-hs .sjv-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.9em;
	margin: 0 0 6px;
	padding: 0;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
}
.sjv-hs .sjv-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}
.sjv-hs .sjv-card__title a:hover {
	color: var(--sjv-accent);
}
.sjv-card__price {
	font-size: 15px;
	font-weight: 600;
	color: var(--sjv-accent);
}
.sjv-card__price del {
	margin-right: 6px;
	font-weight: 400;
	opacity: 0.5;
}
.sjv-card__price ins {
	text-decoration: none;
	background: none;
}

/* ---------- Arrows ---------- */
.sjv-hs .sjv-hs__nav {
	position: absolute;
	top: 38%;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin: -23px 0 0;
	padding: 0;
	background: #fff;
	color: #1d1d1f;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.sjv-hs .sjv-hs__prev {
	left: 12px;
}
.sjv-hs .sjv-hs__next {
	right: 12px;
}
.sjv-hs .sjv-hs__nav:hover {
	background: var(--sjv-accent);
	border-color: var(--sjv-accent);
	color: #fff;
	transform: scale(1.06);
}
.sjv-hs .swiper-button-lock {
	display: none;
}

/* ---------- Dots ---------- */
.sjv-hs__dots {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 28px;
}
.sjv-hs__dots.swiper-pagination-lock {
	display: none;
}
.sjv-hs .sjv-dot {
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 99px;
	background: currentColor;
	opacity: 0.2;
	cursor: pointer;
	transition: width 0.35s ease, opacity 0.35s ease, background 0.35s ease;
}
.sjv-hs .sjv-dot.is-active {
	width: 28px;
	opacity: 1;
	background: var(--sjv-accent);
}

/* ---------- View all ---------- */
.sjv-hs__foot {
	margin-top: 34px;
	text-align: center;
}
.sjv-hs .sjv-hs__all {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 34px;
	border: 1px solid var(--sjv-accent);
	border-radius: 99px;
	color: var(--sjv-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background 0.3s ease, color 0.3s ease, gap 0.3s ease;
}
.sjv-hs .sjv-hs__all:hover {
	gap: 16px;
	background: var(--sjv-accent);
	color: #fff;
}

/* ---------- Reveal on scroll ---------- */
.sjv-hs.sjv-js .swiper-slide {
	transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
	transition-delay: calc(min(var(--i, 0), 6) * 70ms);
}
.sjv-hs.sjv-js:not(.is-in) .swiper-slide {
	opacity: 0;
	transform: translateY(26px);
}

/* ---------- Touch & small screens: button sits under the image ---------- */
@media (hover: none), (max-width: 640px) {
	.sjv-card__actions {
		position: static;
		margin-top: 10px;
		opacity: 1;
		transform: none;
	}
	.sjv-hs .sjv-btn {
		padding: 11px 8px;
		background: transparent;
		color: var(--sjv-accent);
		border: 1px solid var(--sjv-accent);
		box-shadow: none;
		font-size: 10.5px;
		letter-spacing: 0.1em;
	}
	.sjv-hs .sjv-hs__nav {
		display: none;
	}
}

@media (max-width: 640px) {
	.sjv-hs {
		padding: 44px 0 40px;
	}
	.sjv-hs__inner {
		padding: 0 14px;
	}
	.sjv-hs__head {
		margin-bottom: 28px;
	}
	.sjv-hs .sjv-card__title {
		font-size: 13.5px;
	}
	.sjv-card__price {
		font-size: 14px;
	}
	.sjv-card__badge {
		top: 8px;
		left: 8px;
		padding: 5px 9px;
		font-size: 9.5px;
	}
	.sjv-hs__orn::before,
	.sjv-hs__orn::after {
		width: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sjv-hs *,
	.sjv-hs *::before,
	.sjv-hs *::after {
		transition: none !important;
	}
	.sjv-hs.sjv-js:not(.is-in) .swiper-slide {
		opacity: 1;
		transform: none;
	}
}
