/* The product page, luxury and alive but calm (Basel 1.12, last round before publish; preview). Product pages only
   (html.evts-pearl, set in Base.astro; the ?bg=white comparison switch was removed after the publish, 1.12).
   1. A pearl / platinum base (not white, not cream, not black) with slow living light: three large soft shapes (pearl,
      cool silver, a faint brand red) drifting like silk, and thin aerodynamic airflow lines (a wind tunnel over a car
      body) gliding slowly across at very low opacity (SVG). On desktop also a very soft light that follows the cursor
      and a gentle scroll parallax on the airflow lines (depth); both come from evts-pearl.js, never on touch devices or
      with reduced motion. Transform / opacity only; paused while the tab is hidden; still with prefers-reduced-motion.
      No video, no canvas, no blur filter.
   2. The gallery as a photo-studio stage: a rounded cyclorama panel (light gray to white), a soft studio light moving
      slowly, the main image floating with a soft shadow, one light sheen over the frame on load, a thin border glow
      that breathes. Desktop (990px and up): the thumbnails as a vertical rail on the left of the main image (square
      white tiles, the whole photo visible, a red ring that glides to the active one, the rail scrolls if there are
      many) and the whole block sticky while the right column scrolls. Below 990px: a small row of tiles right under
      the main image; on phones the main image swipes, with dots (manager 1.12). */
html.evts-pearl { background-color: #E9EBEF; }
html.evts-pearl body { background: transparent !important; }
html.evts-pearl main[data-template="product"] .color-scheme-1, html.evts-pearl main[data-template="product"] .gradient:not(.product-media-container):not(.thumbnail) { background: transparent; --gradient-background: transparent; }

/* ---------- 1. the living background ---------- */
.evts-amb { display: none; }
html.evts-pearl .evts-amb { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict;
  background: linear-gradient(160deg, #F4F5F7 0%, #E9EBEF 45%, #E2E5EA 100%); }
.evts-amb__s { position: absolute; border-radius: 50%; will-change: transform; }
.evts-amb__s--pearl { width: 78vmax; height: 78vmax; left: -22vmax; top: -30vmax;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, .5) 45%, rgba(255, 255, 255, 0) 72%); animation: evts-amb-a 46s ease-in-out infinite alternate; }
.evts-amb__s--silver { width: 70vmax; height: 70vmax; right: -26vmax; top: 6vmax;
  background: radial-gradient(closest-side, rgba(196, 204, 218, .55), rgba(196, 204, 218, .22) 50%, rgba(196, 204, 218, 0) 72%); animation: evts-amb-b 58s ease-in-out infinite alternate; }
.evts-amb__s--red { width: 56vmax; height: 56vmax; left: 18vmax; bottom: -34vmax;
  background: radial-gradient(closest-side, rgba(232, 33, 39, .10), rgba(232, 33, 39, .04) 50%, rgba(232, 33, 39, 0) 72%); animation: evts-amb-c 64s ease-in-out infinite alternate; }
.evts-amb__air { position: absolute; left: 0; top: 0; width: 200vw; height: 100vh; opacity: .55; will-change: transform; animation: evts-amb-air 80s linear infinite; }
.evts-amb__air path { fill: none; stroke: #8A94A6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* desktop only (evts-pearl.js): the airflow layer is taller and slides up slowly as the page scrolls (the "translate"
   property, so it adds to the drift animation's transform) */
html.evts-amb-par .evts-amb__air { height: 140vh; will-change: transform, translate; }
/* desktop only (evts-pearl.js): a very soft, large light that follows the cursor (moved with transform, eased) */
.evts-amb__cursor { position: absolute; left: 0; top: 0; width: 64vmax; height: 64vmax; margin: -32vmax 0 0 -32vmax; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .9), rgba(252, 252, 254, .42) 40%, rgba(255, 255, 255, 0) 72%);
  will-change: transform, opacity; transition: opacity 1.2s ease; }
html.evts-amb-cursor .evts-amb__cursor { opacity: .7; }
@keyframes evts-amb-a { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(14vmax, 10vmax, 0) scale(1.12); } }
@keyframes evts-amb-b { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-12vmax, 14vmax, 0) scale(.94); } }
@keyframes evts-amb-c { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-16vmax, -12vmax, 0) scale(1.1); } }
@keyframes evts-amb-air { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-100vw, 0, 0); } }
html.evts-amb-paused .evts-amb *, html.evts-amb-paused .evts-studio * , html.evts-amb-paused media-gallery::before { animation-play-state: paused !important; }

/* ---------- 2. the gallery: a photo-studio stage ---------- */
html.evts-pearl media-gallery { position: relative; isolation: isolate; overflow: hidden; display: block; padding: 2.4rem; border-radius: 2.4rem;
  background: radial-gradient(130% 85% at 50% 0%, #FFFFFF 0%, #F7F8FA 42%, #E6E9EE 100%);
  box-shadow: 0 36px 70px -40px rgba(20, 26, 40, .45), 0 2px 6px rgba(20, 26, 40, .05), inset 0 1px 0 #fff; }
/* the soft studio light, moving slowly */
html.evts-pearl .evts-studio { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; border-radius: inherit; }
html.evts-pearl .evts-studio::before { content: ''; position: absolute; width: 90%; height: 80%; left: -10%; top: -20%; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%); animation: evts-studio-light 22s ease-in-out infinite alternate; }
/* one light sheen over the frame on load */
html.evts-pearl .evts-studio::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; z-index: 3; transform: translateX(-140%) skewX(-12deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); animation: evts-studio-sheen 2.2s .5s cubic-bezier(.45, 0, .2, 1) both; }
/* a thin border glow that breathes */
html.evts-pearl media-gallery::before { content: ''; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .95), rgba(170, 180, 196, .55) 40%, rgba(232, 33, 39, .45) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; animation: evts-studio-glow 6s ease-in-out infinite alternate; }
/* the main image floating, with a soft shadow */
html.evts-pearl main[data-template="product"] .product-media-container { border-radius: 1.8rem; overflow: hidden; background: #fff;
  box-shadow: 0 30px 50px -30px rgba(20, 26, 40, .5), 0 0 0 1px rgba(20, 26, 40, .04); transition: transform .6s cubic-bezier(.22, .8, .24, 1); }
html.evts-pearl main[data-template="product"] .product-media-container.is-tilt { transition: transform .14s linear; }
html.evts-pearl main[data-template="product"] .product__media-item { --media-border-opacity: 0; }

/* the thumbnails: square white tiles, the whole photo visible (contain, never cropped). Dawn keeps each tile square
   (the item's ::before spacer, the button absolute on top of it). */
html.evts-pearl media-gallery [id^="GalleryThumbnails"] { margin: 0; }
html.evts-pearl media-gallery [id^="GalleryThumbnails"] .slider-button { display: none !important; }
html.evts-pearl media-gallery .thumbnail-list { position: relative; display: flex; flex-wrap: nowrap; gap: 1rem; margin: 0; padding: .4rem;
  scrollbar-width: none; }
html.evts-pearl media-gallery .thumbnail-list::-webkit-scrollbar { display: none; }
html.evts-pearl media-gallery .thumbnail-list__item { flex: none; margin: 0; padding: 0; }
html.evts-pearl main[data-template="product"] .thumbnail { border-radius: 1.2rem; overflow: hidden; background: #fff; opacity: 1;
  box-shadow: 0 8px 18px -12px rgba(20, 26, 40, .4), 0 0 0 1px rgba(20, 26, 40, .08); transition: transform .4s cubic-bezier(.22, .8, .24, 1), box-shadow .4s ease; }
html.evts-pearl main[data-template="product"] .thumbnail img { object-fit: contain; padding: .5rem; background: #fff; }
html.evts-pearl main[data-template="product"] .thumbnail:hover { opacity: 1; transform: translateY(-2px); }
html.evts-pearl main[data-template="product"] .thumbnail[aria-current] { border-color: transparent; box-shadow: 0 10px 22px -12px rgba(232, 33, 39, .45), 0 0 0 2px #E82127; }
/* the red ring that glides to the active tile (an li added by evts-pearl.js; the static ring above stays as a fallback) */
html.evts-pearl media-gallery .thumbnail-list.has-ind .thumbnail[aria-current] { box-shadow: 0 8px 18px -12px rgba(20, 26, 40, .4), 0 0 0 1px rgba(20, 26, 40, .08); }
html.evts-pearl .evts-thumb-ind { position: absolute; left: 0; top: 0; z-index: 2; list-style: none; pointer-events: none; border-radius: 1.2rem;
  box-shadow: 0 0 0 2px #E82127, 0 12px 26px -12px rgba(232, 33, 39, .6); }
html.evts-pearl .evts-thumb-ind.is-ready { transition: transform .55s cubic-bezier(.22, .8, .24, 1); }
html.evts-pearl .evts-thumb-ind::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: .5rem; height: 3px; border-radius: 3px;
  background-image: linear-gradient(90deg, #FF4747, #F25C00); }

/* desktop: the rail on the left of the main image, the block sticky under the 80px header */
@media screen and (min-width: 750px) {
  html.evts-pearl media-gallery.product__column-sticky { position: sticky; top: 10rem; }
}
@media screen and (min-width: 990px) {
  html.evts-pearl media-gallery:has(> [id^="GalleryThumbnails"]) { --evts-rail: 8.8rem; padding-left: calc(2.4rem + var(--evts-rail) + 1.6rem); }
  html.evts-pearl media-gallery > [id^="GalleryThumbnails"] { position: absolute; left: 2.4rem; top: 2.4rem; bottom: 2.4rem; width: var(--evts-rail); z-index: 2; }
  html.evts-pearl media-gallery > [id^="GalleryThumbnails"] .thumbnail-list { flex-direction: column; height: 100%; overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; }
  html.evts-pearl media-gallery > [id^="GalleryThumbnails"] .thumbnail-list__item { width: 100%; }
  /* a soft fade only on the side that has more tiles (evts-pearl.js sets --evts-f1 / --evts-f2) */
  html.evts-pearl media-gallery > [id^="GalleryThumbnails"].is-scroll .thumbnail-list {
    -webkit-mask-image: linear-gradient(transparent, #000 var(--evts-f1, 0px), #000 calc(100% - var(--evts-f2, 0px)), transparent);
    mask-image: linear-gradient(transparent, #000 var(--evts-f1, 0px), #000 calc(100% - var(--evts-f2, 0px)), transparent); }
}
/* below 990px: a small row of tiles right under the main image (Dawn hides it on phones; shown here) */
@media screen and (max-width: 989px) {
  html.evts-pearl media-gallery > [id^="GalleryThumbnails"], html.evts-pearl media-gallery > [id^="GalleryThumbnails"].small-hide { display: block !important; margin-top: 1rem; }
  html.evts-pearl media-gallery > [id^="GalleryThumbnails"] .thumbnail-list { overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: none; }
  html.evts-pearl media-gallery > [id^="GalleryThumbnails"] .thumbnail-list__item, html.evts-pearl media-gallery > [id^="GalleryThumbnails"] .thumbnail-list__item.slider__slide { width: 6.4rem; }
  html.evts-pearl media-gallery > [id^="GalleryThumbnails"].is-scroll-x .thumbnail-list {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--evts-f1, 0px), #000 calc(100% - var(--evts-f2, 0px)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--evts-f1, 0px), #000 calc(100% - var(--evts-f2, 0px)), transparent); }
}
@media screen and (max-width: 749px) {
  html.evts-pearl media-gallery { padding: 1.4rem 1.4rem 1rem; border-radius: 2rem; }
  html.evts-pearl media-gallery > [id^="GalleryThumbnails"] { margin-top: .6rem; }
  html.evts-pearl media-gallery > [id^="GalleryThumbnails"] .thumbnail-list__item, html.evts-pearl media-gallery > [id^="GalleryThumbnails"] .thumbnail-list__item.slider__slide { width: 5.6rem; }
  html.evts-pearl main[data-template="product"] .thumbnail img { padding: .35rem; }
  /* the main image swipes, one photo at a time inside the frame (no peek of the next photo at the edges) */
  html.evts-pearl media-gallery > [id^="GalleryViewer"] { margin-left: 0; margin-right: 0; }
  html.evts-pearl media-gallery > [id^="GalleryViewer"] .product__media-list { margin: 0; width: 100%; padding: 0; column-gap: 0; gap: 0; scroll-padding-left: 0; }
  html.evts-pearl media-gallery > [id^="GalleryViewer"] .product__media-list::after { content: none; display: none; }
  html.evts-pearl media-gallery > [id^="GalleryViewer"] .product__media-list .product__media-item { width: 100%; min-width: 100%; margin: 0; padding: 0; box-sizing: border-box; }
  /* the dots (evts-pearl.js); the arrows and the "1 / 6" counter give way */
  html.evts-pearl media-gallery.evts-has-dots [id^="GalleryViewer"] .slider-buttons { display: none !important; }
  html.evts-pearl .evts-dots { position: absolute; left: 50%; bottom: 1.4rem; z-index: 3; display: flex; gap: .7rem; padding: .6rem 1rem; border-radius: 99px; pointer-events: none;
    transform: translateX(-50%); background: rgba(255, 255, 255, .82); box-shadow: 0 4px 14px -6px rgba(20, 26, 40, .35), 0 0 0 1px rgba(20, 26, 40, .06); }
  html.evts-pearl .evts-dots i { width: .6rem; height: .6rem; border-radius: 50%; background: rgba(20, 26, 40, .28); transition: transform .3s ease, background-color .3s ease; }
  html.evts-pearl .evts-dots i.is-on { background: #E82127; transform: scale(1.35); }
}
.evts-dots { display: none; }
@media screen and (max-width: 749px) { html.evts-pearl .evts-dots { display: flex; } }
@keyframes evts-studio-light { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(28%, 22%, 0); } }
@keyframes evts-studio-sheen { to { transform: translateX(380%) skewX(-12deg); } }
@keyframes evts-studio-glow { from { opacity: .35; } to { opacity: .85; } }

/* ---------- 3. kept from the last rounds: the trust box, "How it works:" and the "Fit:" note as dark panels ---------- */
html.evts-pearl main[data-template="product"] .evts-trust { background: linear-gradient(160deg, #171b27, #0f1015 70%); border-color: rgba(255, 255, 255, .09); }
html.evts-pearl main[data-template="product"] .evts-trust li { color: rgba(240, 242, 246, .92); }
html.evts-pearl main[data-template="product"] .evts-trust span { color: rgba(236, 238, 242, .66); }
html.evts-pearl main[data-template="product"] .evts-trust svg { color: #FF6B4A; }
@media (hover: hover) { html.evts-pearl main[data-template="product"] .evts-trust li:hover { background: rgba(255, 255, 255, .05); } }
html.evts-pearl main[data-template="product"] .evts-how,
html.evts-pearl main[data-template="product"] .product__description.rte p:has(> strong:first-child) {
  background: linear-gradient(160deg, #1b1e28, #121319 75%); border: 0; border-radius: 1.2rem; color: rgba(236, 238, 242, .86);
  box-shadow: inset 3px 0 0 #F5A623, inset 0 0 0 1px rgba(255, 255, 255, .08), 0 10px 24px -16px rgba(0, 0, 0, .6); }
html.evts-pearl main[data-template="product"] .evts-how { padding: 1.2rem 1.4rem 1.2rem 1.6rem; }
html.evts-pearl main[data-template="product"] .evts-how strong,
html.evts-pearl main[data-template="product"] .product__description.rte p:has(> strong:first-child) strong { color: #FFB84D; }

@media (prefers-reduced-motion: reduce) {
  html.evts-pearl .evts-amb *, html.evts-pearl .evts-studio::before, html.evts-pearl .evts-studio::after, html.evts-pearl media-gallery::before { animation: none !important; }
  html.evts-pearl .evts-studio::after, html.evts-pearl .evts-amb__cursor { display: none; }
  html.evts-pearl main[data-template="product"] .product-media-container, html.evts-pearl main[data-template="product"] .thumbnail,
  html.evts-pearl .evts-thumb-ind.is-ready, html.evts-pearl .evts-dots i { transition: none; }
  html.evts-pearl media-gallery .thumbnail-list { scroll-behavior: auto !important; }
}
