/* Page change animation (2026-11-25, page-transition-options.html option Β): the content glides up, the header stays.
   CSS only (cross-document View Transitions): Chrome / Edge / Samsung Internet / Safari 18.2+; other browsers change pages as before.
   Same-site links only; off with «reduce motion». */
@view-transition { navigation: auto; }

/* The header (top bar + logo + menu + icons) is its own layer, so it stays still while the page underneath changes. */
#wrapper-navbar { view-transition-name: dm-header; }
/* A view-transition-name makes the header its own stacking layer, so its mega menu could fall behind the page content:
   keep the whole header above the page (the side cart and the search dim sit higher / are placed for this). */
#wrapper-navbar { position: relative; z-index: 1030; }
::view-transition-group(dm-header) { animation: none; z-index: 2; }
::view-transition-old(dm-header) { display: none; }
::view-transition-new(dm-header) { animation: none; }

/* v2 (2026-11-25, «it snaps»): only the new page moves. Moving and fading BOTH pages showed two see-through pages
   shifted against each other for a moment, plus a short gap — that read as a jerk. Now the old page stays still underneath
   and the new one rises over it (its background is solid, so it simply covers the old one). */
::view-transition-image-pair(root) { isolation: auto; }
::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: dm-vt-in .32s cubic-bezier(.22, .61, .36, 1) both; mix-blend-mode: normal; }
@keyframes dm-vt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	@view-transition { navigation: none; }
}
