/* Poshima 3D Carousel */
.pcx {
	--pcx-h: 420px;                    /* product image height */
	--pcx-w: calc(var(--pcx-h) * .78); /* product card width */
	--pcx-ink: #f2f2f2;
	--pcx-accent: #f2f2f2;
	position: relative; z-index: 5; isolation: isolate;
	color: var(--pcx-ink);
	padding: 30px 0 40px;
	overflow: hidden;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.pcx *, .pcx *::before, .pcx *::after { box-sizing: border-box; }
.pcx.is-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

.pcx-stage {
	position: relative;
	height: calc(var(--pcx-h) + 90px);
	touch-action: pan-y;
	cursor: grab;
}
.pcx.is-dragging .pcx-stage { cursor: grabbing; }

/* giant outlined word behind */
.pcx-bgtext {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	font: 900 clamp(70px, 17vw, 260px)/1 "Arial Black", "Helvetica Neue", Arial, sans-serif;
	letter-spacing: .04em; direction: ltr;
	color: transparent;
	-webkit-text-stroke: 1.5px rgba(255, 255, 255, .13);
	white-space: nowrap; pointer-events: none;
	transform: translateY(-6%);
}

.pcx-scene {
	position: absolute; inset: 0;
	perspective: 1050px;
	perspective-origin: 50% 30%;
}
.pcx-ring {
	position: absolute; left: 50%; top: 20px;
	width: var(--pcx-w); height: var(--pcx-h);
	margin-left: calc(var(--pcx-w) / -2);
}
.pcx-item {
	position: absolute; inset: 0;
	display: block;
	transform-origin: 50% 100%;
	outline: none;
	text-decoration: none !important;
	will-change: transform, filter, opacity;
}
.pcx-item img {
	width: 100%; height: 100%;
	object-fit: contain; object-position: 50% 100%;
	display: block; margin: 0; max-width: none; border: 0; box-shadow: none;
	pointer-events: none;
	filter: drop-shadow(0 26px 22px rgba(0, 0, 0, .55));
}
.pcx-item:focus-visible { outline: 2px dashed var(--pcx-ink); outline-offset: 8px; }

/* colour glow behind the front product */
.pcx-glow {
	position: absolute; left: 50%; top: calc(20px + var(--pcx-h) * .5);
	width: calc(var(--pcx-w) * 2.3); height: calc(var(--pcx-h) * 1.15);
	transform: translate(-50%, -50%);
	background-color: rgba(255, 255, 255, .12);
	-webkit-mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
	mask-image: radial-gradient(closest-side, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
	filter: blur(30px);
	transition: background-color .9s ease;
	pointer-events: none;
}

/* glowing floor */
.pcx-floor {
	position: absolute; left: 50%; bottom: 34px;
	width: min(92vw, calc(var(--pcx-w) * 3.4)); height: 90px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .05) 38%, rgba(255, 255, 255, 0) 70%);
	pointer-events: none;
}

/* arrows — hardened against theme / Elementor button styles */
.pcx .pcx-nav,
.pcx .pcx-nav:hover,
.pcx .pcx-nav:focus,
.pcx .pcx-nav:active {
	position: absolute !important; top: 50% !important; z-index: 200 !important;
	display: flex !important; align-items: center !important; justify-content: center !important;
	width: 52px !important; height: 52px !important; min-width: 0 !important; min-height: 0 !important;
	margin: -42px 0 0 !important; padding: 0 !important;
	border: 1px solid rgba(255, 255, 255, .28) !important; border-radius: 50% !important;
	background: rgba(255, 255, 255, .06) !important; background-image: none !important;
	color: var(--pcx-ink) !important;
	box-shadow: none !important; text-shadow: none !important; outline: none;
	font-size: 0 !important; line-height: 0 !important; letter-spacing: 0 !important;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background-color .25s, border-color .25s, transform .25s !important;
}
.pcx .pcx-nav:hover { background: rgba(255, 255, 255, .16) !important; border-color: rgba(255, 255, 255, .5) !important; transform: scale(1.06); }
.pcx .pcx-nav:focus-visible { outline: 2px solid var(--pcx-ink) !important; outline-offset: 3px; }
.pcx .pcx-nav svg { display: block !important; width: 22px !important; height: 22px !important; fill: none !important; stroke: currentColor !important; margin: 0 !important; }
.pcx .pcx-prev { right: max(16px, calc(50% - var(--pcx-w) * 1.9)) !important; left: auto !important; }
.pcx .pcx-next { left:  max(16px, calc(50% - var(--pcx-w) * 1.9)) !important; right: auto !important; }

/* name + price */
.pcx-info {
	position: relative; z-index: 3;
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	text-align: center; min-height: 118px;
	transition: opacity .3s ease, transform .3s ease;
}
.pcx-info.is-changing { opacity: 0; transform: translateY(8px); }
.pcx-name {
	color: var(--pcx-ink) !important; text-decoration: none !important;
	font-size: 20px; font-weight: 700; line-height: 1.6;
}
.pcx-price { font-size: 16px; opacity: .8; }
.pcx-price del { opacity: .55; margin-inline-end: 8px; font-size: .85em; }
.pcx-price ins { text-decoration: none; }
.pcx .pcx-btn, .pcx .pcx-btn:focus {
	background: transparent !important; box-shadow: none !important;
	margin-top: 8px; padding: 10px 30px;
	border: 1.5px solid var(--pcx-accent); border-radius: 999px;
	color: var(--pcx-accent) !important; text-decoration: none !important;
	font-size: 14px; line-height: 1.6;
	transition: background .25s, color .25s;
}
.pcx .pcx-btn:hover { background: var(--pcx-accent) !important; color: #111 !important; border-color: var(--pcx-accent) !important; }

@media (max-width: 767px) {
	.pcx { --pcx-h: 280px; padding-top: 16px; }
	.pcx .pcx-nav, .pcx .pcx-nav:hover, .pcx .pcx-nav:focus { width: 42px !important; height: 42px !important; margin-top: -32px !important; }
	.pcx .pcx-prev { right: 8px !important; }
	.pcx .pcx-next { left: 8px !important; }
	.pcx-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.pcx-info { transition: none; }
}
