/*
 * Emporium WooCommerce VR Cards
 * Design repris de la galerie VR: image 4/3, hover glassmorphic, zoom, bouton "Voir plus".
 */

:root {
	--emp-vr-primary-gradient: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	--emp-vr-accent-color: #a78bfa;
	--emp-vr-card-bg: #ffffff;
	--emp-vr-text-dark: #1a202c;
	--emp-vr-text-muted: #718096;
	--emp-vr-red: #c63235;
	--emp-vr-cream: #fff8eb;
	--emp-vr-transition-smooth: cubic-bezier(0.165, 0.84, 0.44, 1);
}

.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.25rem;
	margin-left: auto;
	margin-right: auto;
	max-width: 1480px;
}

@media (min-width: 640px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.woocommerce ul.products.columns-3,
	.woocommerce-page ul.products.columns-3,
	.woocommerce ul.products.columns-4,
	.woocommerce-page ul.products.columns-4 {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
	content: none;
	display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	float: none !important;
	clear: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 0 20px !important;
	background: transparent;
	border: 0;
	text-align: initial;
}

.woocommerce ul.products li.product .emp-vr-product-card,
.woocommerce-page ul.products li.product .emp-vr-product-card {
	display: flex;
	flex-direction: column;
	cursor: pointer;
	position: relative;
	background: transparent;
	border-radius: 20px;
	text-decoration: none;
	color: inherit;
	transition: transform 0.4s var(--emp-vr-transition-smooth);
}

.woocommerce ul.products li.product .emp-vr-product-card:hover,
.woocommerce-page ul.products li.product .emp-vr-product-card:hover,
.woocommerce ul.products li.product .emp-vr-product-card:focus-visible,
.woocommerce-page ul.products li.product .emp-vr-product-card:focus-visible {
	text-decoration: none;
	outline: none;
}

.emp-vr-product-cover-container {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	transform: translateY(0);
	transition:
		transform 0.5s var(--emp-vr-transition-smooth),
		box-shadow 0.5s var(--emp-vr-transition-smooth);
}

.woocommerce ul.products li.product .emp-vr-product-cover,
.woocommerce-page ul.products li.product .emp-vr-product-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	transition: transform 0.6s var(--emp-vr-transition-smooth);
}

.emp-vr-product-hover-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(12, 12, 18, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.4s ease;
	z-index: 2;
}

.emp-vr-product-hover-btn {
	font-family: Inter, system-ui, sans-serif;
	font-weight: 600;
	font-size: 0.95rem;
	color: #ffffff;
	background: rgba(255, 255, 255, 0.15);
	border: 1.5px solid rgba(255, 255, 255, 0.3);
	padding: 0.8rem 1.6rem;
	border-radius: 50px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transform: scale(0.9);
	transition:
		transform 0.4s var(--emp-vr-transition-smooth),
		background-color 0.3s ease,
		border-color 0.3s ease,
		box-shadow 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

.emp-vr-product-card:hover .emp-vr-product-cover-container,
.emp-vr-product-card:focus-visible .emp-vr-product-cover-container {
	transform: translateY(-8px);
	box-shadow: 0 20px 35px rgba(118, 75, 162, 0.25);
}

.emp-vr-product-card:hover .emp-vr-product-cover,
.emp-vr-product-card:focus-visible .emp-vr-product-cover {
	transform: scale(1.08);
}

.emp-vr-product-card:hover .emp-vr-product-hover-overlay,
.emp-vr-product-card:focus-visible .emp-vr-product-hover-overlay {
	opacity: 1;
}

.emp-vr-product-card:hover .emp-vr-product-hover-btn,
.emp-vr-product-card:focus-visible .emp-vr-product-hover-btn {
	transform: scale(1);
}

.emp-vr-product-hover-btn:hover {
	background: var(--emp-vr-red);
	color: var(--emp-vr-cream);
	border-color: var(--emp-vr-red);
	box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.emp-vr-product-card-meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin-top: 1.2rem;
	text-align: center;
}

.emp-vr-product-card-title {
	font-family: Outfit, system-ui, sans-serif;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--emp-vr-text-dark);
	margin: 0;
	text-align: center;
	letter-spacing: -0.2px;
	line-height: 1.2;
	transition: color 0.3s ease;
}

.emp-vr-product-card-price {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	color: #54487e;
	font-family: Inter, system-ui, sans-serif;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	padding-top: 0;
	text-align: center;
	white-space: nowrap;
}

.emp-vr-product-card-price del {
	color: var(--emp-vr-text-muted);
	font-weight: 500;
	margin-right: 0.35rem;
	opacity: 0.8;
}

.emp-vr-product-card-price ins {
	background: transparent;
	color: #54487e;
	text-decoration: none;
}

.emp-vr-product-card:hover .emp-vr-product-card-title,
.emp-vr-product-card:focus-visible .emp-vr-product-card-title {
	color: #764ba2;
}

@media (max-width: 639px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		gap: 1.5rem;
		max-width: 100%;
	}

	.emp-vr-product-card-meta {
		flex-direction: column;
		align-items: center;
		gap: 0.35rem;
	}

	.emp-vr-product-card-title {
		font-size: 1.2rem;
	}
}
