/* Dental Express — Quick View (desktop only) */

.dx-qv-trigger {
	position: absolute;
	left: 10px;
	top: 10px;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: #fff;
	border: 1px solid #d9e4ef;
	border-radius: 8px;
	color: var(--dx-cat-blue, #005596);
	box-shadow: 0 8px 18px rgba(16, 42, 67, .14);
	cursor: pointer;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}

.dx-cat-card:hover .dx-qv-trigger {
	opacity: 1;
	transform: translateY(0);
}

.dx-qv-trigger:hover {
	background: var(--dx-cat-blue, #005596);
	border-color: var(--dx-cat-blue, #005596);
	color: #fff;
}

.dx-qv-trigger svg {
	width: 17px;
	height: 17px;
}

/* Quick View is a desktop convenience — collapse on touch/narrow layouts
   where a modal adds more friction than it removes. */
@media only screen and (max-width: 849px) {
	.dx-qv-trigger {
		display: none !important;
	}
}

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

.dx-qv-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 30px;
	background: rgba(16, 42, 67, .58);
	backdrop-filter: blur(2px);
}

.dx-qv-overlay.is-open {
	display: flex;
}

.dx-qv-modal {
	position: relative;
	width: 100%;
	max-width: 900px;
	max-height: 88vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 30px 70px rgba(8, 20, 35, .35);
	direction: rtl;
}

.dx-qv-close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: #eef3f8;
	border: 1px solid #ccdceb;
	border-radius: 8px;
	color: var(--dx-cat-blue-dark, #003b71);
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(16, 42, 67, .10);
	transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.dx-qv-close:hover {
	background: var(--dx-cat-red, #d71920);
	border-color: var(--dx-cat-red, #d71920);
	color: #fff;
	transform: translateY(-1px);
}

.dx-qv-close svg {
	width: 18px;
	height: 18px;
	stroke-width: 2.5;
}

.dx-qv-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 320px;
	color: var(--dx-cat-muted, #64748b);
	font-size: 13px;
	font-weight: 800;
}

.dx-qv-body {
	display: grid;
	grid-template-columns: 340px minmax(0, 1fr);
	gap: 0;
}

.dx-qv-media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 340px;
	padding: 26px;
	background: radial-gradient(circle at center, #ffffff 0%, #ffffff 42%, #f8fbfe 100%);
	border-left: 1px solid #eef3f8;
	border-radius: 14px 0 0 14px;
}

.dx-qv-media img {
	max-width: 100%;
	max-height: 320px;
	object-fit: contain;
}

.dx-qv-info {
	padding: 28px 26px 26px;
	display: flex;
	flex-direction: column;
}

.dx-qv-info .dx-cat-card-meta {
	margin-bottom: 12px;
}

.dx-qv-title {
	margin: 0 0 10px;
	color: var(--dx-cat-blue-dark, #003b71);
	font-size: 18px;
	font-weight: 950;
	line-height: 1.6;
}

.dx-qv-sku {
	margin-bottom: 14px;
	font-size: 11.5px;
	color: var(--dx-cat-muted, #64748b);
}

.dx-qv-sku bdi {
	color: var(--dx-cat-blue-dark, #003b71);
	font-weight: 900;
}

.dx-qv-price {
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #eef3f8;
	color: var(--dx-cat-text, #102a43);
	font-size: 19px;
	font-weight: 950;
}

.dx-qv-desc {
	margin-bottom: 20px;
	color: #45566b;
	font-size: 13px;
	line-height: 1.9;
}

.dx-qv-actions {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.dx-qv-actions .dx-cat-card-btn {
	flex: 1 1 220px;
	min-height: 44px;
}

.dx-qv-full-link {
	color: var(--dx-cat-blue, #005596);
	font-size: 12.6px;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

.dx-qv-full-link:hover {
	color: var(--dx-cat-red, #d71920);
}

@media only screen and (max-width: 900px) {
	.dx-qv-body {
		grid-template-columns: 1fr;
	}

	.dx-qv-media {
		border-left: 0;
		border-bottom: 1px solid #eef3f8;
		border-radius: 14px 14px 0 0;
		min-height: 240px;
	}
}
