/* -------------------------------------------------------------------------
   Quick View modal — Royal Collection
   Desktop: centered dialog ~1000px. Mobile: bottom sheet.
---------------------------------------------------------------------------- */

.rc-qv {
	position: fixed;
	inset: 0;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.rc-qv.is-open {
	opacity: 1;
	visibility: visible;
}
.rc-qv__overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 26, 22, 0.55);
	backdrop-filter: blur(2px);
}
.rc-qv__dialog {
	position: relative;
	width: 100%;
	max-width: 1000px;
	max-height: calc(100vh - 48px);
	background: #fffdf8;
	border-radius: 18px;
	box-shadow: 0 24px 70px rgba(40, 30, 20, 0.35);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: translateY(16px) scale(0.985);
	transition: transform 0.25s ease;
}
.rc-qv.is-open .rc-qv__dialog {
	transform: translateY(0) scale(1);
}
.rc-qv__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: none;
	background: #f0ebe2;
	color: #51483e;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}
.rc-qv__close:hover {
	background: #884d57;
	color: #fff;
}
.rc-qv__body {
	position: relative;
	overflow-y: auto;
	padding: 28px 28px 22px;
}
.rc-qv__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	color: #51483e;
	gap: 12px;
}
.rc-qv__spinner {
	width: 30px;
	height: 30px;
	border: 3px solid #e2d9cb;
	border-top-color: #884d57;
	border-radius: 50%;
	animation: rcqv-spin 0.8s linear infinite;
}
@keyframes rcqv-spin {
	to { transform: rotate(360deg); }
}

/* Full-product link under the dialog content */
.rc-qv__full {
	display: inline-block;
	margin-top: 18px;
	font-family: "Cormorant Garamond", serif;
	font-size: 16px;
	font-weight: 600;
	color: #884d57;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.rc-qv__full:hover {
	color: #6d3a43;
}

/* ---- reuse of single-product layout inside the modal ---- */
.rc-qv .rc-sp__layout {
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.rc-qv .rc-sp__gallery {
	align-self: start;
}
.rc-qv .rc-sp__title {
	font-size: clamp(24px, 3vw, 32px);
}

body.rc-qv-locked {
	overflow: hidden;
}

/* ---- mobile: bottom sheet ---- */
@media (max-width: 760px) {
	.rc-qv {
		align-items: flex-end;
		padding: 0;
	}
	.rc-qv__dialog {
		max-width: 100%;
		max-height: 92vh;
		border-radius: 18px 18px 0 0;
		transform: translateY(100%);
	}
	.rc-qv.is-open .rc-qv__dialog {
		transform: translateY(0);
	}
	.rc-qv__body {
		padding: 48px 18px 24px;
	}
	.rc-qv .rc-sp__layout {
		grid-template-columns: 1fr;
	}
	.rc-qv .rc-sp__thumbs {
		display: flex;
		overflow-x: auto;
	}
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
	.rc-qv,
	.rc-qv__dialog {
		transition: none;
	}
	.rc-qv__spinner {
		animation: none;
	}
}
