/* AS DZ MARKET – effets (bandeau défilant, cartes 3D, parallaxe, panier, transitions d'onglets) */

/* 1) Bandeau défilant */
.asdz-announce:not(.asdz-announce--static) { padding: .5rem 0; overflow: hidden; text-align: start; }
.asdz-ticker { display: flex; width: max-content; animation: asdz-marq 46s linear infinite; }
.asdz-ticker:hover { animation-play-state: paused; }
.asdz-ticker__list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.asdz-ticker__list li { position: relative; padding-inline: 2.4rem; white-space: nowrap; font-size: .86rem; font-weight: 600; }
.asdz-ticker__list li::after { content: ''; position: absolute; inset-inline-end: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--orange, #f28c28); }
@keyframes asdz-marq { to { transform: translateX(-50%); } }
.asdz-store[dir="rtl"] .asdz-ticker { animation-name: asdz-marq-rtl; }
@keyframes asdz-marq-rtl { to { transform: translateX(50%); } }

/* 2) Cartes produits en 3D (l'inclinaison est pilotée par asdz-fx.js, PC uniquement) */
.asdz-store ul.products li.product { position: relative; transform-style: preserve-3d; }
.asdz-store ul.products li.product.asdz-tilt-on {
	transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px) scale(1.015) !important;
	transition: transform .12s ease-out !important;
	z-index: 5;
}
.asdz-glare { position: absolute; inset: 0; z-index: 3; border-radius: 12px; pointer-events: none; opacity: 0; mix-blend-mode: overlay; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.75), transparent 55%); transition: opacity .3s; }
.asdz-tilt-on .asdz-glare { opacity: 1; }

/* 3) Parallaxe de la bannière (transform posé par le JS) */
.asdz-cover__img { will-change: transform; }

/* 4) Produit qui vole vers le panier */
.asdz-fly { position: fixed; z-index: 99999; margin: 0; max-width: none; object-fit: cover; border-radius: 12px; pointer-events: none; box-shadow: 0 14px 30px rgba(7,61,36,.35); }

/* 5) Transition entre les onglets (Chrome, Edge, Safari récents) */
@view-transition { navigation: auto; }
.asdz-store .asdz-hero { view-transition-name: asdz-hero; }
.asdz-store .tab_area { view-transition-name: asdz-tab; }
::view-transition-old(asdz-tab) { animation: asdz-vt-out .18s ease both; }
::view-transition-new(asdz-tab) { animation: asdz-vt-in .4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes asdz-vt-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes asdz-vt-in { from { opacity: 0; transform: translateY(14px); } }
/* Navigateurs sans transition de page : simple fondu à l'arrivée */
@supports not (view-transition-name: none) {
	.asdz-store .tab_area > *:not(.tab_links_area):not(.wcfm-clearfix) { animation: asdz-vt-in .4s ease both; }
}

/* Mouvement réduit : tout reste fixe et lisible */
@media (prefers-reduced-motion: reduce) {
	.asdz-ticker { animation: none; width: auto; justify-content: center; }
	.asdz-ticker__list:nth-child(2), .asdz-ticker__list li:nth-child(n+2) { display: none; }
	.asdz-ticker__list li::after { display: none; }
	.asdz-store ul.products li.product.asdz-tilt-on { transform: none !important; }
	.asdz-glare, .asdz-fly { display: none; }
	::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
