/* =========================================================
   ARCHE FEATURED SHOWCASE
   Stacked, draggable product-deck carousel
   ========================================================= */

.arche-deck-showcase {
	--arche-card-width: clamp(248px, 25vw, 330px);
	--arche-card-height: clamp(430px, 52vw, 500px);

	position: relative;
	width: 100%;
	margin: 0;
}

.arche-deck-showcase__stage {
	position: relative;
	isolation: isolate;

	width: 100%;
	height: clamp(500px, 55vw, 585px);

	overflow: visible;

	touch-action: pan-y;
	cursor: grab;

	perspective-origin: 50% 46%;
	transform-style: preserve-3d;

	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.arche-deck-showcase__stage.is-dragging {
	cursor: grabbing;
}

.arche-deck-card {
	position: absolute;

	-webkit-user-select: none;
	user-select: none;
	top: 50%;
	left: 50%;
	z-index: 1;

	display: flex;
	flex-direction: column;

	width: var(--arche-card-width);
	height: var(--arche-card-height);

	overflow: hidden;

	background:
		linear-gradient(
			155deg,
			#1b1e20 0%,
			#111314 100%
		);

	border:
		1px solid rgba(164, 119, 57, 0.42);

	border-radius: 10px;

	box-shadow:
		0 20px 52px rgba(0, 0, 0, 0.34);

	opacity: 0;
	pointer-events: none;

	transform:
		translate3d(-50%, -50%, 0)
		scale(0.78);

	transform-origin: 50% 85%;
	transform-style: preserve-3d;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;

	transition:
		transform 620ms cubic-bezier(0.22, 1, 0.36, 1),
		opacity 420ms ease,
		filter 420ms ease,
		border-color 220ms ease,
		box-shadow 220ms ease;

	will-change:
		transform,
		opacity;
}

.arche-deck-card.is-active {
	border-color:
		rgba(210, 176, 111, 0.86);

	box-shadow:
		0 28px 70px rgba(0, 0, 0, 0.48),
		0 0 0 1px rgba(164, 119, 57, 0.14);

	pointer-events: auto;
}

.arche-deck-card__image-link {
	position: relative;

	display: block;
	flex: 0 0 62%;

	overflow: hidden;

	background:
		linear-gradient(
			145deg,
			#efefec,
			#d7d8d5
		);
}

.arche-deck-card__image {
	display: block;

	-webkit-user-drag: none;
	user-drag: none;
	-webkit-user-select: none;
	user-select: none;

	width: 100%;
	height: 100%;

	margin: 0;

	object-fit: cover;

	transition:
		transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.arche-deck-card.is-active:hover
.arche-deck-card__image {
	transform: scale(1.035);
}

.arche-deck-card__content {
	position: relative;

	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;

	padding: 19px 21px 22px;

	text-align: center;
}

.arche-deck-card__number {
	position: absolute;
	top: 8px;
	right: 15px;

	margin: 0;

	color: rgba(210, 176, 111, 0.18);

	font-family: "Cinzel", serif;
	font-size: 42px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.04em;

	pointer-events: none;
}

.arche-deck-card__title {
	position: relative;
	z-index: 1;

	margin: 0 0 9px;

	font-family: "Cinzel", serif;
	font-size: clamp(17px, 1.5vw, 21px);
	font-weight: 500;
	line-height: 1.25;
}

.arche-deck-card__title a {
	color: #f2f1ec;
	text-decoration: none;
}

.arche-deck-card__title a:hover {
	color: #d2b06f;
}

.arche-deck-card__price {
	position: relative;
	z-index: 1;

	margin: 0 0 16px;

	color: #d2b06f;

	font-family: "Raleway", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
}

.arche-deck-card__price del {
	color: rgba(242, 241, 236, 0.42);
	font-weight: 500;
}

.arche-deck-card__price ins {
	color: #d2b06f;
	text-decoration: none;
}

.arche-deck-card__button {
	position: relative;
	z-index: 1;

	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;

	margin-top: auto;
	padding: 10px 18px;

	color: #ffffff;
	background: #a47739;

	border: 1px solid #a47739;
	border-radius: 3px;

	font-family: "Raleway", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.04em;

	text-align: center;
	text-decoration: none;
	text-transform: uppercase;

	transition:
		background-color 160ms ease,
		border-color 160ms ease,
		transform 160ms ease;
}

.arche-deck-card__button:hover {
	color: #ffffff;
	background: #8d642f;
	border-color: #8d642f;
	transform: translateY(-1px);
}


/* Existing WooCommerce / Buddy badge output */

.arche-deck-card .onsale {
	z-index: 8;
}


/* Optional navigation arrows */

.arche-deck-showcase__controls {
	display: flex;
	align-items: center;
	gap: 10px;

	width: 100%;

	margin: 14px 0;
}

.arche-deck-showcase__controls--left {
	justify-content: flex-start;
}

.arche-deck-showcase__controls--center {
	justify-content: center;
}

.arche-deck-showcase__controls--right {
	justify-content: flex-end;
}

.arche-deck-showcase__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	width: 44px;
	height: 44px;

	padding: 0;

	color: #d2b06f;
	background: transparent;

	border:
		1px solid rgba(164, 119, 57, 0.72);

	border-radius: 50%;

	font-size: 20px;
	line-height: 1;

	cursor: pointer;

	transition:
		color 160ms ease,
		background-color 160ms ease,
		border-color 160ms ease,
		transform 160ms ease;
}

.arche-deck-showcase__arrow:hover {
	color: #ffffff;
	background: #a47739;
	border-color: #a47739;
	transform: translateY(-1px);
}


/* Minimal interaction hint */

.arche-deck-showcase__footer {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 100%;

	margin: -2px auto 0;
}

.arche-deck-showcase__hint {
	margin: 0;

	color: rgba(242, 241, 236, 0.56);

	font-family: "Raleway", sans-serif;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.10em;
	text-align: center;
	text-transform: uppercase;
}


/* Responsive */

@media (max-width: 900px) {

	.arche-deck-showcase {
		--arche-card-width: clamp(240px, 42vw, 310px);
		--arche-card-height: clamp(420px, 67vw, 480px);
	}

	.arche-deck-showcase__stage {
		height: 525px;
	}
}


@media (max-width: 599px) {

	.arche-deck-showcase {
		--arche-card-width: min(78vw, 300px);
		--arche-card-height: min(126vw, 465px);
	}

	.arche-deck-showcase__stage {
		height: 475px;
	}


	.arche-deck-card__number {
		font-size: 34px;
	}
}


@media (prefers-reduced-motion: reduce) {

	.arche-deck-card,
	.arche-deck-card__image,
	.arche-deck-card__button,
	.arche-deck-showcase__arrow {
		transition: none !important;
	}
}
