/* Atomic Elements – Quick View (storefront) */

.atomel-qv-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	background: transparent;
	border: 1px solid currentColor;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 13px;
	line-height: 1.2;
	color: inherit;
	transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.atomel-qv-btn:hover {
	color: #7c3aed;
	border-color: #7c3aed;
}

.atomel-qv-btn__icon {
	display: inline-flex;
	align-items: center;
}

.atomel-qv-image-wrap {
	position: absolute;
	left: 10px;
	bottom: 10px;
	z-index: 3;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

li.product:hover .atomel-qv-image-wrap {
	opacity: 1;
	transform: translateY(0);
}

.atomel-qv-btn--image {
	background: #fff;
	color: #333;
	border-color: transparent;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	border-radius: 999px;
}

/* Modal */
.atomel-qv-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.atomel-qv-modal.is-open {
	display: block;
}

.atomel-qv-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.6);
}

.atomel-qv-modal__dialog {
	position: relative;
	margin: 5vh auto;
	max-width: 900px;
	width: calc(100% - 32px);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	padding: 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.atomel-qv-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.atomel-qv-modal.is-loading .atomel-qv-modal__body::after {
	content: "";
	display: block;
	width: 32px;
	height: 32px;
	margin: 40px auto;
	border: 3px solid #e2e8f0;
	border-top-color: #7c3aed;
	border-radius: 50%;
	animation: atomelQvSpin 0.8s linear infinite;
}

@keyframes atomelQvSpin {
	to {
		transform: rotate(360deg);
	}
}

/* Content layout */
.atomel-qv-product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px;
}

.atomel-qv-gallery__main img {
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.atomel-qv-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.atomel-qv-thumb {
	display: block;
	width: 64px;
	border: 2px solid transparent;
	border-radius: 6px;
	overflow: hidden;
}

.atomel-qv-thumb.is-active {
	border-color: #7c3aed;
}

.atomel-qv-thumb img {
	display: block;
	width: 100%;
	height: auto;
}

.atomel-qv-title {
	margin: 0 0 10px;
	font-size: 22px;
}

.atomel-qv-price {
	font-size: 20px;
	font-weight: 600;
	margin: 8px 0 14px;
}

.atomel-qv-excerpt {
	color: #475569;
	margin-bottom: 16px;
}

.atomel-qv-more {
	display: inline-block;
	margin-top: 14px;
	font-size: 13px;
}

@media (max-width: 640px) {
	.atomel-qv-product {
		grid-template-columns: 1fr;
	}
}

.rtl .atomel-qv-image-wrap {
	left: auto;
	right: 10px;
}

.rtl .atomel-qv-modal__close {
	right: auto;
	left: 12px;
}
