/* Motion draft (opt-in: ?motion=1), kept to what helps: images fade in, dialogs open softly,
   cards glide when the list changes, the tab bar slides, folds unroll, buttons give under a press.
   Every rule is scoped to html.motion, which motion.js sets only when the draft is switched on
   and the visitor has not asked for reduced motion. */
html.motion{--motion-ease:cubic-bezier(.22,1,.36,1)}

/* Thumbnails fade in once loaded, over a faint shimmer while they load. */
html.motion .art-wrap img.art{transition:opacity .45s ease}
html.motion .art-wrap img.art:not(.motion-loaded){opacity:0}
html.motion .product-card:not(.collection-card) .art-wrap:has(> img.art:not(.motion-loaded)){background:linear-gradient(100deg,#f3f2f6 30%,#faf9fc 50%,#f3f2f6 70%) 0 0/250% 100%;animation:motion-shimmer 1.4s linear infinite}
@keyframes motion-shimmer{to{background-position:-150% 0}}

/* Dialogs open with a short fade and a small rise. */
html.motion dialog[open]{animation:motion-dialog .35s var(--motion-ease)}
html.motion dialog[open]::backdrop{animation:motion-fade .3s ease}
@keyframes motion-dialog{from{opacity:0;transform:translateY(10px)}}
@keyframes motion-fade{from{opacity:0}}

/* Tab indicator: one bar slides between Gallery and Info instead of jumping. */
html.motion .site-tabs{position:relative}
html.motion .site-tabs a.active{border-bottom-color:transparent}
html.motion .motion-tab-bar{position:absolute;left:0;bottom:0;height:2px;background:var(--ink);pointer-events:none;transition:transform .4s var(--motion-ease),width .4s var(--motion-ease),opacity .2s}

/* Press feedback: buttons give a little under the finger. */
html.motion :is(button,a.primary,a.secondary):not(:disabled):active{transform:scale(.97)}
html.motion .product-card:active{transform:translateY(-2px) scale(.985)}
