/**
 * MaxHeildsala WooCommerce Product Slider
 */

.maxproductslider {
	--maxproductslider-section-bg: #ffffff;
	--maxproductslider-card-bg: #ffffff;
	--maxproductslider-title: #0B1420;
	--maxproductslider-price: #0B1420;
	--maxproductslider-muted: #4B5563;
	--maxproductslider-accent: #D4A15A;
	--maxproductslider-accent-dark: #9B6B2C;
	--maxproductslider-border: rgba(11, 20, 32, 0.08);
	--maxproductslider-gap: 14px;
	--maxproductslider-per-view: 4;

	position: relative;
	overflow: hidden;
	background: var(--maxproductslider-section-bg);
	color: var(--maxproductslider-title);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.maxproductslider--full-bleed {
	width: 100vw;
	max-width: 100vw;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
}

.maxproductslider *,
.maxproductslider *::before,
.maxproductslider *::after {
	box-sizing: border-box;
}

.maxproductslider__inner {
	width: min(100% - 32px, 1120px);
	margin: 0 auto;
}

.maxproductslider__heading {
	margin: 0 0 14px;
	color: var(--maxproductslider-title);
	font-family: "Playfair Display", Georgia, serif;
	font-size: clamp(20px, 2.3vw, 34px);
	font-weight: 800;
	line-height: 1.08;
	text-align: center;
	letter-spacing: -0.035em;
}

.maxproductslider__shell {
	position: relative;
}

.maxproductslider__viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	touch-action: pan-y;
}

.maxproductslider__track {
	display: flex;
	gap: var(--maxproductslider-gap);
	align-items: stretch;
	will-change: transform;
	transition: transform var(--maxproductslider-speed, 420ms) cubic-bezier(0.22, 1, 0.36, 1);
}

.maxproductslider__slide {
	flex: 0 0 calc((100% - (var(--maxproductslider-gap) * (var(--maxproductslider-per-view) - 1))) / var(--maxproductslider-per-view));
	min-width: 0;
}

.maxproductslider__card {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: center;
	height: 100%;
	min-width: 0;
	padding: 10px;
	overflow: hidden;
	border: 1px solid var(--maxproductslider-border);
	border-radius: 10px;
	background: var(--maxproductslider-card-bg);
	box-shadow: 0 10px 26px rgba(11, 20, 32, 0.04);
	transition:
		transform 180ms ease,
		box-shadow 180ms ease,
		border-color 180ms ease;
}

.maxproductslider__card:hover,
.maxproductslider__card:focus-within {
	transform: translateY(-2px);
	border-color: rgba(212, 161, 90, 0.4);
	box-shadow: 0 16px 34px rgba(11, 20, 32, 0.09);
}

.maxproductslider__media {
	display: flex;
	flex: 0 0 42%;
	align-items: center;
	justify-content: center;
	min-width: 0;
	text-decoration: none;
}

.maxproductslider__media:hover,
.maxproductslider__media:focus {
	text-decoration: none;
}

.maxproductslider__image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 82px;
}

.maxproductslider__image img {
	display: block;
	width: auto;
	max-width: 100%;
	max-height: 118px;
	object-fit: contain;
	object-position: center;
	filter: drop-shadow(0 10px 12px rgba(11, 20, 32, 0.13));
	transition: transform 180ms ease;
}

.maxproductslider__card:hover .maxproductslider__image img {
	transform: scale(1.03);
}

.maxproductslider__body-link {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding-right: 30px;
	color: inherit;
	text-decoration: none;
}

.maxproductslider__body-link:hover,
.maxproductslider__body-link:focus {
	color: var(--maxproductslider-accent-dark);
	text-decoration: none;
}

.maxproductslider__title {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: var(--maxproductslider-title);
	font-size: 14px;
	font-weight: 850;
	line-height: 1.14;
	letter-spacing: -0.015em;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.maxproductslider__price {
	margin-top: 9px;
	color: var(--maxproductslider-price);
	font-size: 13px;
	font-weight: 900;
	line-height: 1.2;
}

.maxproductslider__price del {
	margin-right: 4px;
	color: var(--maxproductslider-muted);
	font-weight: 700;
	opacity: 0.65;
}

.maxproductslider__price ins {
	color: var(--maxproductslider-accent-dark);
	font-weight: 900;
	text-decoration: none;
}

.maxproductslider__cart {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 0;
	border-radius: 7px;
	background: var(--maxproductslider-accent);
	color: #ffffff;
	font-size: 13px;
	font-weight: 900;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 8px 16px rgba(212, 161, 90, 0.26);
	transition:
		transform 160ms ease,
		background-color 160ms ease,
		box-shadow 160ms ease;
}

.maxproductslider__cart:hover,
.maxproductslider__cart:focus {
	background: var(--maxproductslider-accent-dark);
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-1px);
	box-shadow: 0 11px 20px rgba(75, 46, 29, 0.2);
}

.maxproductslider__cart:focus-visible,
.maxproductslider__body-link:focus-visible,
.maxproductslider__media:focus-visible,
.maxproductslider__arrow:focus-visible,
.maxproductslider__dot:focus-visible {
	outline: 3px solid rgba(212, 161, 90, 0.45);
	outline-offset: 3px;
}

.maxproductslider__cart svg {
	display: block;
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.maxproductslider__cart.added {
	background: #4B2E1D;
}

.maxproductslider__cart.added::after {
	display: none;
}

.maxproductslider__cart.loading {
	opacity: 0.75;
	pointer-events: none;
}

.maxproductslider__cart.loading svg {
	animation: maxproductslider-cart-pulse 700ms ease-in-out infinite alternate;
}

.maxproductslider__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(212, 161, 90, 0.55);
	border-radius: 999px;
	background: rgba(11, 20, 32, 0.82);
	color: #ffffff;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	box-shadow: 0 12px 24px rgba(11, 20, 32, 0.18);
	transition:
		transform 160ms ease,
		background-color 160ms ease,
		border-color 160ms ease,
		opacity 160ms ease;
}

.maxproductslider__arrow:hover,
.maxproductslider__arrow:focus {
	background: var(--maxproductslider-accent);
	border-color: var(--maxproductslider-accent);
	color: #0B1420;
	transform: translateY(-50%) scale(1.04);
}

.maxproductslider__arrow--prev {
	left: -17px;
}

.maxproductslider__arrow--next {
	right: -17px;
}

.maxproductslider__arrow.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.maxproductslider__dots {
	display: flex;
	gap: 7px;
	align-items: center;
	justify-content: center;
	margin-top: 14px;
}

.maxproductslider__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 1px solid var(--maxproductslider-accent);
	border-radius: 999px;
	background: transparent;
	cursor: pointer;
	opacity: 0.75;
	transition:
		width 160ms ease,
		background-color 160ms ease,
		opacity 160ms ease;
}

.maxproductslider__dot.is-active {
	width: 24px;
	background: var(--maxproductslider-accent);
	opacity: 1;
}

.maxproductslider__empty,
.maxproductslider--notice .maxproductslider__inner {
	padding: 18px;
	border: 1px solid var(--maxproductslider-border);
	border-radius: 12px;
	background: #F6F2EC;
	color: var(--maxproductslider-title);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
}

.maxproductslider-fly-image {
	position: fixed;
	z-index: 999999;
	display: block;
	object-fit: contain;
	object-position: center;
	pointer-events: none;
	filter: drop-shadow(0 14px 18px rgba(11, 20, 32, 0.22));
	will-change: transform, opacity;
}

.maxproductslider-cart-target-pulse {
	animation: maxproductslider-cart-pulse 520ms ease-out 1;
}

@keyframes maxproductslider-cart-pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(212, 161, 90, 0.42);
	}

	42% {
		transform: scale(1.08);
		box-shadow: 0 0 0 10px rgba(212, 161, 90, 0.18);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 0 0 18px rgba(212, 161, 90, 0);
	}
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Tablet */
@media (max-width: 1024px) {
	.maxproductslider {
		--maxproductslider-per-view: 3;
	}

	.maxproductslider__inner {
		width: min(100% - 28px, 900px);
	}

	.maxproductslider__arrow--prev {
		left: -12px;
	}

	.maxproductslider__arrow--next {
		right: -12px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	.maxproductslider {
		--maxproductslider-per-view: 1.25;
		--maxproductslider-gap: 10px;
	}

	.maxproductslider__inner {
		width: min(100% - 22px, 560px);
	}

	.maxproductslider__heading {
		margin-bottom: 12px;
		font-size: clamp(20px, 7vw, 30px);
	}

	.maxproductslider__viewport {
		overflow: visible;
	}

	.maxproductslider__card {
		display: grid;
		grid-template-columns: 40% 1fr;
		gap: 8px;
		align-items: center;
		min-height: 138px;
		padding: 9px;
	}

	.maxproductslider__media {
		width: 100%;
		flex-basis: auto;
	}

	.maxproductslider__image {
		min-height: 104px;
	}

	.maxproductslider__image img {
		max-height: 104px;
	}

	.maxproductslider__body-link {
		width: 100%;
		padding-right: 32px;
	}

	.maxproductslider__title {
		font-size: 13px;
		line-height: 1.18;
		-webkit-line-clamp: 3;
	}

	.maxproductslider__price {
		margin-top: 8px;
		font-size: 12px;
	}

	.maxproductslider__cart {
		right: 9px;
		bottom: 9px;
		width: 30px;
		height: 30px;
		border-radius: 9px;
	}

	.maxproductslider__cart svg {
		width: 15px;
		height: 15px;
	}

	.maxproductslider__arrow {
		display: none;
	}
}

/* Very small mobile */
@media (max-width: 380px) {
	.maxproductslider {
		--maxproductslider-per-view: 1.08;
	}

	.maxproductslider__card {
		grid-template-columns: 38% 1fr;
		min-height: 124px;
	}

	.maxproductslider__image {
		min-height: 86px;
	}

	.maxproductslider__image img {
		max-height: 96px;
	}
}

@keyframes maxproductslider-cart-pulse {
	from {
		transform: scale(1);
	}

	to {
		transform: scale(0.9);
	}
}

@media (prefers-reduced-motion: reduce) {
	.maxproductslider__track,
	.maxproductslider__card,
	.maxproductslider__image img,
	.maxproductslider__cart,
	.maxproductslider__arrow,
	.maxproductslider__dot {
		transition: none;
	}

	.maxproductslider__card:hover,
	.maxproductslider__card:focus-within,
	.maxproductslider__card:hover .maxproductslider__image img,
	.maxproductslider__cart:hover,
	.maxproductslider__cart:focus,
	.maxproductslider__arrow:hover,
	.maxproductslider__arrow:focus {
		transform: none;
	}

	.maxproductslider__arrow {
		transform: translateY(-50%);
	}

	.maxproductslider__cart.loading svg {
		animation: none;
	}
}
