/**
 * Hexalix Quick View Styles
 */

/* Modale */
.hexalix-qv-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.hexalix-qv-modal.is-open {
	opacity: 1;
	visibility: visible;
}

/* Overlay */
.hexalix-qv-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

/* Container */
.hexalix-qv-container {
	position: relative;
	background: #fff;
	border-radius: 16px;
	max-width: 900px;
	width: 90%;
	max-height: 90vh;
	overflow: hidden;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	transform: scale(0.95) translateY(20px);
	transition: transform 0.3s ease;
}

.hexalix-qv-modal.is-open .hexalix-qv-container {
	transform: scale(1) translateY(0);
}

/* Bouton fermer */
.hexalix-qv-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	z-index: 10;
	background: #fff;
	border: 1px solid var(--wp--preset--color--contrast);
	outline: none;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.hexalix-qv-close:hover {
	transform: scale(1.1);
}

.hexalix-qv-close svg {
	width: 20px;
	height: 20px;
}

/* Contenu */
.hexalix-qv-content {
	max-height: 90vh;
	overflow-y: auto;
}

/* Loader */
.hexalix-qv-loader {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 300px;
}

.hexalix-qv-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e0e0e0;
	border-top-color: #333;
	border-radius: 50%;
	animation: hexalix-spin 0.8s linear infinite;
}

@keyframes hexalix-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Produit */
.hexalix-qv-product {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

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

/* Image */
.hexalix-qv-image {
	position: relative;
	background: #f5f5f5;
}

.hexalix-qv-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--wp--preset--color--accent-3);
}

.hexalix-qv-sale-badge {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background: var(--wp--preset--color--accent-1);
	color: #fff;
	padding: 0.4rem 1rem;
	border-radius: 6px;
	border: 1px dashed;
	outline: 2px solid var(--wp--preset--color--accent-1);
	font-size: 1rem;
	font-weight: 600;
}

/* Détails */
.hexalix-qv-details {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.hexalix-qv-product-title {
	margin: 0;
	font-size: 1.7rem;
	font-weight: 600;
	line-height: 1.3;
}
.hexalix-qv-product-title span{
	font-size: 1.3rem;
}
.hexalix-qv-product-title span a{
	color: var(--wp--preset--color--accent-2);
}

.hexalix-qv-price {
	font-size: 1.25rem;
	font-weight: 600;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1rem;
	margin-top: 1rem;
}

.hexalix-qv-price del {
	color: #000;
	font-weight: 400;
}

.hexalix-qv-price ins {
	text-decoration: none;
	font-weight: 800;
	font-size: 1.8rem;
	color:#000;
}

.hexalix-qv-themes a, 
.hexalix-qv-niveau a{
	color: var(--wp--preset--color--accent-3);
}

.hexalix-qv-description {
	color: #555;
	font-size: 0.95rem;
	line-height: 1.6;
}
