/**
 * Amitry Product & Category Slider Pro - Quickview Modal
 */

/* Quickview button on card */
.wcsp-quickview-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 5;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.95);
	color: #111827;
	border: none;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.wcsp-slide:hover .wcsp-quickview-btn,
.wcsp-card:hover + .wcsp-quickview-btn,
.wcsp-quickview-btn:focus-visible {
	opacity: 1;
	transform: translateY(0);
}

.wcsp-quickview-btn:hover {
	background: #111827;
	color: #fff;
}

.wcsp-slide {
	position: relative;
}

/* Modal */
.wcsp-quickview-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.wcsp-quickview-modal.is-open {
	display: flex;
	animation: wcsp-fade-in 0.2s ease;
}

.wcsp-quickview-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	cursor: pointer;
}

.wcsp-quickview-dialog {
	position: relative;
	background: #fff;
	border-radius: 12px;
	max-width: 900px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
	animation: wcsp-zoom-in 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.wcsp-quickview-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	background: rgba(0, 0, 0, 0.05);
	border: none;
	border-radius: 50%;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background 0.15s;
}

.wcsp-quickview-close:hover {
	background: rgba(0, 0, 0, 0.15);
}

.wcsp-quickview-body {
	padding: 32px;
	min-height: 100px;
}

.wcsp-quickview-loading {
	text-align: center;
	padding: 40px;
	color: #6b7280;
}

/* Layout in modal */
.wcsp-qv-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
}

.wcsp-qv-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.wcsp-qv-title {
	margin: 0 0 12px 0 !important;
	font-size: 22px !important;
	font-weight: 600;
	line-height: 1.3;
}

.wcsp-qv-rating {
	display: flex;
	gap: 2px;
	align-items: center;
	margin-bottom: 12px;
	font-size: 16px;
}

.wcsp-qv-rating .wcsp-star {
	color: #d1d5db;
}

.wcsp-qv-rating .wcsp-star--filled {
	color: #f59e0b;
}

.wcsp-qv-rating-num {
	margin-left: 6px;
	color: #6b7280;
	font-size: 13px;
}

.wcsp-qv-price {
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	margin: 8px 0 16px 0;
}

.wcsp-qv-desc {
	font-size: 14px;
	color: #4b5563;
	line-height: 1.6;
	margin-bottom: 24px;
}

.wcsp-qv-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.wcsp-qv-actions .button {
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.wcsp-qv-buy {
	background: transparent;
	color: #111827;
	border: 1px solid #111827;
}

.wcsp-qv-buy:hover { background: #111827; color: #fff; }

.wcsp-qv-cart {
	background: #111827;
	color: #fff !important;
	border: 1px solid #111827;
}

.wcsp-qv-cart:hover { background: #1f2937; }

@media (max-width: 720px) {
	.wcsp-qv-layout { grid-template-columns: 1fr; }
	.wcsp-quickview-body { padding: 20px; }
}

@keyframes wcsp-fade-in {
	from { opacity: 0; }
	to   { opacity: 1; }
}

@keyframes wcsp-zoom-in {
	from { opacity: 0; transform: scale(0.96); }
	to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.wcsp-quickview-modal.is-open,
	.wcsp-quickview-dialog { animation: none; }
	.wcsp-quickview-btn { transition: none; }
}
