/* VY Shop Core — Composants front-end ultra-légers */

/* Barre d'annonce (Top Bar) */
.vy-topbar {
	background-color: var(--vy-accent, var(--vy-primary, #111827));
	color: #ffffff;
	font-size: 0.85rem;
	line-height: 1.4;
	text-align: center;
}

.vy-topbar[hidden] {
	display: none;
}

.vy-topbar__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.55rem 2.5rem;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vy-topbar__close {
	position: absolute;
	right: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: inherit;
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.8;
	padding: 0.2rem 0.4rem;
}

.vy-topbar__close:hover {
	opacity: 1;
}

.vy-topbar a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Bandeau Boutique en pause / Vacances */
.vy-pause-banner {
	background: #fef3c7;
	border-bottom: 1px solid #f59e0b;
	color: #92400e;
	font-size: 0.92rem;
}

.vy-pause-banner__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	text-align: center;
}

/* Barre de progression livraison gratuite */
.vy-free-shipping-bar {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.vy-free-shipping-bar.is-unlocked {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.vy-free-shipping-bar__text {
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.vy-free-shipping-bar__track {
	width: 100%;
	height: 8px;
	background: #e2e8f0;
	border-radius: 999px;
	overflow: hidden;
}

.vy-free-shipping-bar__fill {
	display: block;
	height: 100%;
	background: var(--vy-cta, #10b981);
	border-radius: 999px;
	transition: width 0.3s ease;
}

/* Blocs de réassurance */
.vy-reassurance-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 900px) {
	.vy-reassurance-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

.vy-reassurance-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1rem;
}

.vy-reassurance-item__icon {
	font-size: 1.5rem;
	line-height: 1;
	flex-shrink: 0;
}

.vy-reassurance-item__title {
	display: block;
	font-size: 0.95rem;
	color: var(--vy-primary, #111827);
	margin-bottom: 0.2rem;
}

.vy-reassurance-item__text {
	margin: 0;
	font-size: 0.82rem;
	color: #64748b;
	line-height: 1.45;
}

/* Bouton WhatsApp sur fiche produit & shortcode */
.vy-product-whatsapp-wrap {
	width: 100%;
	margin-top: 0.75rem;
}

.vy-product-whatsapp-btn,
.vy-sc-whatsapp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background: #25d366;
	color: #ffffff !important;
	font-weight: 600;
	font-size: 0.95rem;
	padding: 0.75rem 1.25rem;
	border-radius: 8px;
	text-decoration: none;
	transition: filter 0.18s ease, transform 0.18s ease;
}

.vy-product-whatsapp-btn:hover,
.vy-sc-whatsapp-btn:hover {
	filter: brightness(0.94);
	transform: translateY(-1px);
}

/* Notice globale produit & stock faible */
.vy-product-global-notice {
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	border-left: 4px solid var(--vy-secondary, #2563eb);
	background: #f8fafc;
	border-radius: 0 8px 8px 0;
	font-size: 0.9rem;
	color: #334155;
}

.vy-product-global-notice p:last-child {
	margin-bottom: 0;
}

.stock.vy-low-stock-alert {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	background: #fef2f2;
	color: #b91c1c !important;
	font-weight: 600;
	font-size: 0.88rem;
}

/* Bulle WhatsApp flottante */
.vy-whatsapp-float {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: #25d366;
	color: #ffffff !important;
	padding: 0.75rem 1rem;
	border-radius: 999px;
	box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vy-whatsapp-float:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(37, 211, 102, 0.45);
}

@media (max-width: 600px) {
	.vy-whatsapp-float__label {
		display: none;
	}
	.vy-whatsapp-float {
		padding: 0.85rem;
	}
}

/* Pop-up promotionnel CRO */
.vy-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background: rgba(15, 23, 42, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.vy-popup-overlay[hidden] {
	display: none;
}

.vy-popup-dialog {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
	animation: vyPopupIn 0.25s ease;
}

@keyframes vyPopupIn {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.vy-popup-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: #0f172a;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.vy-popup-media img {
	width: 100%;
	max-height: 220px;
	object-fit: cover;
	display: block;
}

.vy-popup-content {
	padding: 1.5rem 1.75rem 1.75rem;
	text-align: center;
}

.vy-popup-title {
	margin: 0 0 0.65rem;
	font-size: 1.35rem;
	color: var(--vy-primary, #111827);
}

.vy-popup-text {
	color: #475569;
	font-size: 0.95rem;
	margin-bottom: 1.15rem;
}

.vy-popup-coupon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	flex-wrap: wrap;
	background: #f8fafc;
	border: 2px dashed var(--vy-secondary, #2563eb);
	border-radius: 10px;
	padding: 0.75rem 1rem;
}

.vy-popup-coupon-code {
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--vy-primary, #111827);
	background: transparent;
}

.vy-popup-copy-btn {
	border: none;
	border-radius: 8px;
	padding: 0.55rem 1rem;
	background: var(--vy-cta, #10b981);
	color: #ffffff;
	font-weight: 600;
	font-size: 0.88rem;
	cursor: pointer;
}

/* Liste réseaux sociaux */
.vy-social-links {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	padding: 0;
	margin: 0;
}

.vy-social-links a {
	display: inline-block;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	border: 1px solid currentColor;
	font-size: 0.85rem;
	text-decoration: none;
	opacity: 0.88;
	transition: opacity 0.15s ease;
}

.vy-social-links a:hover {
	opacity: 1;
}

.vy-sc-address {
	font-style: normal;
}

/* Modale aperçu Mode Test WhatsApp */
.vy-wa-test-badge {
	display: inline-block;
	padding: 0.28rem 0.75rem;
	border-radius: 999px;
	background: #fef3c7;
	color: #92400e;
	font-size: 0.78rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
}

.vy-wa-test-bubble {
	background: #dcfce7;
	color: #14532d;
	border: 1px solid #86efac;
	border-radius: 12px;
	padding: 1rem 1.15rem;
	margin: 0.85rem 0 1rem;
	text-align: left;
	font-size: 0.94rem;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.vy-wa-test-hint {
	font-size: 0.82rem;
	color: #64748b;
	margin: 0 0 1.15rem;
}
