/* Interaction details benchmarked on heirest.com (2026-10). Loaded after the palette; changes behaviour and motion only. */

/* Colour and underline changes ease in over 0.3s (Heirest: color / text-decoration-color 0.3s ease-out).
   :where() keeps this weaker than any component that defines its own transition. */
:where(a,button,summary){transition:color .3s ease-out,background-color .3s ease-out,border-color .3s ease-out,text-decoration-color .3s ease-out,opacity .3s ease-out}

/* Header stays at the top on every page except home (which has its own hero states), like Heirest's always-visible navbar.
   A hairline appears once the page has scrolled. */
html body:not(.home-mode)>header{position:sticky;top:0;z-index:30;background:#fff;box-shadow:0 1px 0 transparent;transition:box-shadow .3s ease-out}
html body.page-scrolled:not(.home-mode)>header{box-shadow:0 1px 0 #e5e5e5}
@media(min-width:761px){html body #shop-mega{position:fixed}}

/* No cart or customer accounts: purchases go straight to checkout, so the demo bag and sign-in preview are hidden. */
html body header .bag,html body [data-panel="account"]{display:none!important}

/* Images fade in once loaded (site-interactions.js marks them). Without JavaScript nothing is hidden. */
.js-ready main img:not(.is-loaded){opacity:0}
.js-ready main img{transition:opacity .45s ease-out}
@media(prefers-reduced-motion:reduce){.js-ready main img{transition:none}}

/* Product cards: no dimming or zoom on hover (Heirest: card-hover-effect-none); a quiet "View product" bar rises instead. */
html body .collection-card:hover .collection-image img{opacity:1}
html body .collection-card .collection-image{position:relative;overflow:hidden}
@media(hover:hover) and (pointer:fine){
 html body .collection-card .collection-image::after{content:'View product';position:absolute;left:12px;right:12px;bottom:12px;display:flex;align-items:center;justify-content:center;height:38px;background:#fff;color:#111;font:400 13px/15px 'Roboto Mono',monospace;letter-spacing:-.26px;text-transform:uppercase;opacity:0;transform:translateY(8px);transition:opacity .3s ease-out,transform .3s ease-out;pointer-events:none}
 html body .collection-card:hover .collection-image::after,html body .collection-card:focus-visible .collection-image::after{opacity:1;transform:none}
}

/* FAQ answers open and close smoothly where the browser supports animating <details>. */
:root{interpolate-size:allow-keywords}
.s-faq-list details::details-content,.page details::details-content{height:0;overflow:clip;transition:height .3s ease-out,content-visibility .3s allow-discrete}
.s-faq-list details[open]::details-content,.page details[open]::details-content{height:auto}
@media(prefers-reduced-motion:reduce){.s-faq-list details::details-content,.page details::details-content{transition:none}}

/* Footer strip pauses while you read it. */
html body>footer.site-footer .sf-marquee:hover .sf-marquee-track{animation-play-state:paused}

/* Touch: no grey flash on tap; buttons acknowledge the press. */
a,button,summary,label{-webkit-tap-highlight-color:transparent}
:where(button,.button,.outline-link,.s-review-action):active{transform:translateY(1px)}
