/* Livora Hotspot Album — front end */

.livora-album {
	position: relative;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	height: 100dvh;
	min-height: 520px;
	overflow: hidden;
	background: var(--livora-bg, #0d0e14);
	color: var(--livora-text, #fff);
	user-select: none;
}

/* Neutralise theme (Woodmart/Elementor) button styling inside the album */
.livora-album button {
	min-height: 0 !important;
	min-width: 0 !important;
	box-shadow: none !important;
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
}


.livora-album__track {
	display: flex;
	height: 100%;
	width: 100%;
	transition: transform 0.5s ease;
}

.livora-slide {
	position: relative;
	flex: 0 0 100%;
	height: 100%;
	overflow: hidden;
}

/* Drag-to-look viewport */
.livora-viewport {
	position: absolute;
	inset: 0;
	overflow: hidden;
	touch-action: pan-y;
	cursor: grab;
}

.livora-viewport.is-dragging {
	cursor: grabbing;
}

.livora-stage {
	position: relative;
	height: 100%;
	aspect-ratio: 16 / 9;
	will-change: transform;
}

/* Desktop / laptop: never overflow horizontally — the photo fills the
   viewport width so nothing sits off-screen. Vertical framing is handled
   by the per-room focus point (object-position). */
@media (min-width: 768px) {
	.livora-stage {
		height: 100%;
		width: 100%;
		aspect-ratio: auto;
		/* Desktop has no stage panning. Prevent the inline translate3d from
		   creating a stacking context that traps cards below the copy layer.
		   will-change:transform also creates that context by itself. */
		transform: none !important;
		will-change: auto !important;
	}
}

.livora-photo {
	position: absolute;
	inset: 0;
	/* WordPress themes commonly apply img { height:auto; max-width:100% }.
	   Force the image box to match the stage so object-fit and hotspot maths
	   always use the same crop/focus coordinate system. */
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	display: block;
	object-fit: cover !important;
	filter: brightness(1.14) contrast(0.96) saturate(0.9) hue-rotate(-4deg);
	pointer-events: none;
}

.livora-shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 35%, rgba(0, 0, 0, 0.55)),
		rgba(0, 0, 0, var(--livora-overlay, 0.15));
}

.livora-hint {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 6px 12px;
	border-radius: 8px;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	background: rgba(0, 0, 0, 0.55);
	backdrop-filter: blur(4px);
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.livora-hint.is-hidden {
	opacity: 0;
}

@media (min-width: 768px) {
	.livora-hint {
		display: none;
	}
}

/* Hotspots */
.livora-hotspot {
	position: absolute;
	/* Always above the copy overlay (z-10), nav/arrows (z-15) and any theme
	   content inside the slide, so dots stay visible and hoverable. */
	z-index: 30 !important;
	transform: translate(-50%, -50%);
}

.livora-hotspot.is-open,
.livora-hotspot:hover {
	z-index: 60 !important;
}

.livora-album .livora-dot {
	position: relative;
	display: block !important;
	height: 18px !important;
	width: 18px !important;
	min-height: 0 !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--livora-accent, #9facf9) !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	box-shadow:
		0 0 0 2px rgba(0, 0, 0, 0.35),
		0 2px 14px rgba(0, 0, 0, 0.5),
		0 0 18px var(--livora-accent, #9facf9) !important;
	cursor: pointer;
	transition: transform 0.25s ease;
}

.livora-dot::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	height: 40px;
	width: 40px;
	border-radius: 999px;
	border: 2px solid var(--livora-accent, #9facf9);
	opacity: 0.9;
	background: transparent;
	animation: livora-sonar 2.2s ease-out infinite;
	z-index: -1;
}

.livora-dot:hover {
	transform: scale(1.2);
}

@keyframes livora-sonar {
	0% {
		transform: translate(-50%, -50%) scale(0.55);
		opacity: 0.85;
	}
	100% {
		transform: translate(-50%, -50%) scale(2.1);
		opacity: 0;
	}
}

/* Product card */
.livora-card {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 16px);
	width: 260px;
	transform: translateX(-50%);
	padding: 12px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(13, 14, 20, 0.95);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(10px);
	display: none;
	z-index: 70 !important;
}

.livora-hotspot.is-open .livora-card {
	display: block;
}

/* Hotspot near the top of the image: flip the card downwards */
.livora-hotspot.is-below .livora-card {
	bottom: auto;
	top: calc(100% + 16px);
}

/* Hotspot near a horizontal edge: keep the card inside the viewport */
.livora-hotspot.is-left .livora-card {
	left: 0;
	transform: none;
}

.livora-hotspot.is-right .livora-card {
	left: auto;
	right: 0;
	transform: none;
}

.livora-hotspot.is-open .livora-card,
.livora-hotspot:hover .livora-card {
	z-index: 80 !important;
}

@media (hover: hover) {
	.livora-hotspot:hover .livora-card {
		display: block;
	}
}

.livora-card__close {
	position: absolute;
	right: 8px;
	top: 6px;
	border: 0;
	background: none;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.6;
	display: none;
}

.livora-card__main {
	display: flex;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

.livora-card__thumb img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
}

.livora-card__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.livora-card__cat {
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	opacity: 0.6;
}

.livora-card__name {
	font-size: 14px;
	font-weight: 600;
	margin-top: 2px;
}

.livora-card__price {
	margin-top: 6px;
	font-size: 16px;
	font-weight: 600;
	color: var(--livora-accent, #9facf9);
}

/* Buttons */
.livora-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	cursor: pointer;
	border-radius: 8px;
	background: var(--livora-accent, #9facf9);
	color: #0d0e14;
	font-weight: 600;
	padding: 10px 18px;
	font-size: 13px;
	transition: opacity 0.2s ease;
}

.livora-btn:hover {
	opacity: 0.9;
}

.livora-btn.is-busy {
	opacity: 0.6;
	pointer-events: none;
}

.livora-add {
	width: 100%;
	margin-top: 12px;
}

.livora-kit {
	margin-top: 20px;
	padding: 9px 16px;
	font-size: 12px;
}

@media (min-width: 768px) {
	.livora-kit {
		margin-top: 22px;
		padding: 14px 26px;
		font-size: 14px;
	}
}

a.livora-kit,
a.livora-kit:hover,
a.livora-kit:focus {
	text-decoration: none;
	color: #0d0e14;
}

.livora-kit__price {
	opacity: 0.7;
	font-weight: 500;
}

/* Copy overlay */
.livora-copy {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 10 !important;
	padding: 0 24px calc(120px + var(--livora-bottom-bar, 0px));
	pointer-events: none;
}

/* Text must never block hotspot hovering — only controls stay clickable */
.livora-copy > * {
	pointer-events: none;
}

.livora-copy .livora-btn,
.livora-copy .livora-legend a,
.livora-copy .livora-legend__toggle {
	pointer-events: auto;
}

@media (min-width: 768px) {
	.livora-copy {
		padding: 0 56px calc(150px + var(--livora-bottom-bar, 0px));
	}
}

.livora-eyebrow {
	margin: 0;
	font-size: 10px;
	letter-spacing: 0.4em;
	text-transform: uppercase;
	color: var(--livora-accent, #9facf9);
}

.livora-title {
	margin: 12px 0 0;
	font-size: 34px;
	font-weight: 300;
	line-height: 1.05;
}

@media (min-width: 768px) {
	.livora-title {
		font-size: 60px;
	}
}

.livora-tagline {
	margin: 12px 0 0;
	max-width: 28rem;
	font-size: 17px;
	opacity: 0.75;
}

.livora-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin-top: 18px;
	font-size: 15px;
}

.livora-legend a {
	color: inherit;
	opacity: 0.75;
	text-decoration: none;
}

.livora-legend a:hover {
	opacity: 1;
}

.livora-legend strong {
	color: var(--livora-accent, #9facf9);
}

/* Collapsible product legend */
.livora-legend {
	max-width: 46rem;
}

.livora-legend.is-collapsed li.is-hidden {
	display: none;
}

.livora-legend__toggle {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(13, 14, 20, 0.5);
	color: inherit;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 12px;
	letter-spacing: 0.08em;
	cursor: pointer;
	opacity: 0.8;
	backdrop-filter: blur(8px);
	transition: opacity 0.2s ease, background 0.2s ease;
}

.livora-legend__toggle:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.12);
}

.livora-legend li {
	transition: opacity 0.2s ease;
}

/* Arrows + nav */
.livora-arrow {
	position: absolute;
	top: 50%;
	z-index: 15;
	transform: translateY(-50%);
	height: 44px;
	width: 44px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(13, 14, 20, 0.7);
	color: inherit;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	backdrop-filter: blur(6px);
}

.livora-arrow--prev {
	left: 16px;
}

.livora-arrow--next {
	right: 16px;
}

.livora-nav {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(32px + var(--livora-bottom-bar, 0px));
	z-index: 15;
	display: flex;
	justify-content: center;
	padding: 0 16px;
}


.livora-nav__inner {
	display: flex;
	gap: 4px;
	max-width: 100%;
	overflow-x: auto;
	padding: 6px;
	border-radius: 10px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(13, 14, 20, 0.55);
	backdrop-filter: blur(10px);
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.livora-nav__inner::-webkit-scrollbar {
	display: none;
}

.livora-nav__item {
	white-space: nowrap;
	border: 0;
	background: none;
	color: rgba(255, 255, 255, 0.6);
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	cursor: pointer;
}

.livora-nav__item.is-active {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

/* Mobile: the card is moved to <body> by JS and shown as a bottom sheet,
   because transformed ancestors break position:fixed inside the slider. */
.livora-card.is-sheet {
	display: block;
	position: fixed;
	left: 0;
	right: 0;
	bottom: var(--livora-bottom-bar, 0px);
	top: auto;
	width: auto;
	max-width: 100%;
	transform: none;
	border-radius: 16px 16px 0 0;
	padding: 18px 18px 26px;
	color: var(--livora-text, #fff);
	font-family: inherit;
	z-index: 100000;
}

.livora-card.is-sheet .livora-card__close {
	display: block;
}

.livora-backdrop {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.55);
}

@media (max-width: 767px) {
	.livora-hotspot:hover .livora-card {
		display: none;
	}

	.livora-hotspot.is-open .livora-card {
		display: block;
	}
}

/* Keep arrows clear of the copy block on small screens */
@media (max-width: 767px) {
	.livora-arrow {
		top: 34%;
		height: 40px;
		width: 40px;
		font-size: 20px;
	}
}

/* Desktop-only copy details */
@media (max-width: 767px) {
	.livora-eyebrow,
	.livora-legend {
		display: none !important;
	}
}

.livora-legend {
	list-style: none;
	padding: 0;
}

/* Elementor popup: hide scrollbar and keep above theme header */
.elementor-popup-modal {
	z-index: 999999 !important;
}

.elementor-popup-modal .dialog-widget-content,
.elementor-popup-modal .elementor-popup-modal__content,
.elementor-popup-modal .dialog-message {
	overflow: auto !important;
	scrollbar-width: none !important;
	-ms-overflow-style: none !important;
}

.elementor-popup-modal .dialog-widget-content::-webkit-scrollbar,
.elementor-popup-modal .elementor-popup-modal__content::-webkit-scrollbar,
.elementor-popup-modal .dialog-message::-webkit-scrollbar {
	display: none !important;
}
