/**
 * Lourenza Product Card Carousel Widget Styles
 * 3D Stacked Circular Reel Rotation Layout with Responsive Controls
 */

.lourenza-carousel-wrapper {
	width: 100%;
	max-width: 1050px;
	margin: 0 auto;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
	padding: 10px 0 25px 0;
	font-family: inherit;
}

/* 3D Stage Container */
.lourenza-3d-stage {
	position: relative;
	width: 100%;
	height: 590px;
	margin: 0 auto;
	perspective: 1000px;
}

/* Single Card Base */
.lourenza-card {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 380px;
	box-sizing: border-box;
	border-radius: 16px;
	padding: 40px 32px 35px 32px;
	text-align: center;
	transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
				opacity 0.65s ease,
				box-shadow 0.65s ease,
				background-color 0.65s ease,
				border-color 0.65s ease,
				width 0.65s ease,
				z-index 0.65s ease;
	will-change: transform, opacity, width;
	display: flex;
	flex-direction: column;
	align-items: center;
	overflow: hidden;
}

/* --------------------------------------------------------------------------
   3D POSITIONS: Center (Active), Left (Inactive), Right (Inactive), Hidden
   ----------------================================================---------- */

/* Center Active Card (Bigger Width & Scale, In Front, Elevated) */
.lourenza-card.pos-center {
	transform: translate(-50%, -50%) scale(1.05);
	z-index: 10;
	opacity: 1;
	background-color: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.04);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.09);
	cursor: default;
}

/* Left Card (Positioned behind Left side, ~50% covered by Center Card) */
.lourenza-card.pos-left {
	transform: translate(calc(-100% - 30px), -50%) scale(var(--side-card-scale, 0.85));
	z-index: 2;
	opacity: 0.85;
	background-color: #f8f9fa;
	border: 1px solid #e9ecef;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
	cursor: pointer;
}

.lourenza-card.pos-left:hover {
	opacity: 0.95;
}

/* Right Card (Positioned behind Right side, ~50% covered by Center Card) */
.lourenza-card.pos-right {
	transform: translate(calc(0% + 30px), -50%) scale(var(--side-card-scale, 0.85));
	z-index: 2;
	opacity: 0.85;
	background-color: #f8f9fa;
	border: 1px solid #e9ecef;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
	cursor: pointer;
}

.lourenza-card.pos-right:hover {
	opacity: 0.95;
}

/* Hidden Cards (for > 3 cards in repeater) */
.lourenza-card.pos-hidden {
	transform: translate(-50%, -50%) scale(0.5);
	z-index: 0;
	opacity: 0;
	pointer-events: none;
}

/* --------------------------------------------------------------------------
   HIDE TITLE & TOP SUBTITLE ON INACTIVE SIDE CARDS
   ----------------================================================---------- */
.lourenza-card:not(.pos-center) .lourenza-card-top-subtitle,
.lourenza-card:not(.pos-center) .lourenza-card-main-title {
	opacity: 0;
	visibility: hidden;
	max-height: 0;
	margin-top: 0;
	margin-bottom: 0;
	overflow: hidden;
	transition: opacity 0.35s ease, max-height 0.45s ease, margin 0.45s ease, visibility 0.35s ease;
}

.lourenza-card.pos-center .lourenza-card-top-subtitle,
.lourenza-card.pos-center .lourenza-card-main-title {
	opacity: 1;
	visibility: visible;
	max-height: 300px;
	transition: opacity 0.45s ease 0.1s, max-height 0.45s ease, margin 0.45s ease, visibility 0.45s ease;
}

/* --------------------------------------------------------------------------
   DUAL IMAGE SWAP LOGIC (Active vs Inactive Image)
   ----------------================================================---------- */

/* Inactive Cards: Show Normal Image, Hide Active Image */
.lourenza-card:not(.pos-center) .img-normal {
	display: block;
	opacity: 1;
}

.lourenza-card:not(.pos-center) .img-active {
	display: none !important;
	opacity: 0;
}

/* Active Center Card: Show Active Image if present, Hide Normal Image */
.lourenza-card.pos-center .lourenza-card-image-wrap:has(.img-active) .img-normal {
	display: none !important;
	opacity: 0;
}

.lourenza-card.pos-center .img-active {
	display: block !important;
	opacity: 1;
}

/* --------------------------------------------------------------------------
   CARD BOTTOM ACCENT BAR (SHOWN ON ACTIVE CENTER CARD ONLY BY DEFAULT)
   ----------------================================================---------- */
.lourenza-card-accent-bar {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 8px;
	background-color: #bfa145;
	border-bottom-left-radius: 16px;
	border-bottom-right-radius: 16px;
	display: none;
	transition: background-color 0.3s ease;
}

.lourenza-card.pos-center .lourenza-card-accent-bar {
	display: block;
}

/* --------------------------------------------------------------------------
   CARD INTERNAL CONTENT
   ----------------================================================---------- */

/* Top Subtitle */
.lourenza-card-top-subtitle {
	font-size: 15px;
	color: #5e646e;
	margin-bottom: 8px;
	font-weight: 400;
	letter-spacing: 0.1px;
}

/* Main Title */
.lourenza-card-main-title {
	font-size: 28px;
	line-height: 1.25;
	color: #333333;
	font-weight: 500;
	margin: 0 0 22px 0;
	letter-spacing: -0.3px;
	text-align: center;
}

/* Highlighted Word in Title */
.lourenza-card-main-title .highlight {
	color: #bfa145;
	font-weight: 700;
}

/* Product Image Wrap */
.lourenza-card-image-wrap {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 5px 0 15px 0;
}

.lourenza-card-image-wrap img {
	max-width: 265px;
	width: 100%;
	height: auto;
	object-fit: contain;
	display: block;
	transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Image zoom on active card */
.lourenza-card.pos-center .lourenza-card-image-wrap img {
	transform: scale(1.03);
}

/* Tagline below Image */
.lourenza-card-tagline {
	font-size: 13.5px;
	color: #555555;
	font-weight: 400;
	margin-bottom: 8px;
	letter-spacing: 0.1px;
}

/* Description Text */
.lourenza-card-desc {
	font-size: 13px;
	line-height: 1.5;
	color: #666666;
	margin-bottom: 22px;
	max-width: 310px;
	text-align: center;
}

/* Button & Link Wrappers */
.lourenza-card-btn-wrap {
	margin-bottom: 14px;
	width: 100%;
}

/* Primary Pill Button */
.lourenza-btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #bfa145;
	border-radius: 50px;
	color: #bfa145;
	background-color: transparent;
	padding: 6px 22px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none !important;
	transition: all 0.3s ease;
	cursor: pointer;
	box-shadow: none;
}

.lourenza-btn-primary:hover {
	background-color: #bfa145;
	color: #ffffff;
	border-color: #bfa145;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(191, 161, 69, 0.25);
}

/* Secondary Link Wrapper & Style */
.lourenza-card-sec-link-wrap {
	width: 100%;
	margin-bottom: 5px;
}

.lourenza-link-secondary {
	color: #1a4b84;
	font-size: 13px;
	font-weight: 500;
	text-decoration: underline;
	transition: color 0.3s ease;
	cursor: pointer;
}

.lourenza-link-secondary:hover {
	color: #0f2942;
}

/* Dots Navigation */
.lourenza-dots-container {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 25px;
	margin-bottom: 10px;
}

.lourenza-dot {
	width: 12px;
	height: 12px;
	min-width: 0 !important;
	min-height: 0 !important;
	max-width: none !important;
	max-height: none !important;
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	border-radius: 50%;
	border: none;
	background-color: #e0e0e0;
	cursor: pointer;
	transition: all 0.3s ease;
	outline: none;
	line-height: 1 !important;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none !important;
}

.lourenza-dot:hover {
	background-color: #cccccc;
}

.lourenza-dot.is-active {
	background-color: #b5b5b5;
	transform: scale(1.15);
}

/* ==========================================================================
   RESPONSIVE MOBILE BREAKPOINTS
   ========================================================================== */

@media (max-width: 820px) {
	.lourenza-3d-stage {
		height: 570px;
	}

	.lourenza-card-main-title {
		font-size: 23px;
	}
}

@media (max-width: 580px) {
	.lourenza-3d-stage {
		height: 550px;
	}

	.lourenza-card-main-title {
		font-size: 20px;
	}
}
