/*
 * RUO store — Elementor animation styles
 * Source: current React/Framer Motion implementation.
 *
 * Add the listed ruo-* classes in Elementor > Advanced > CSS Classes.
 * The optional ruo-elementor-reveal.js only adds .ruo-visible when an
 * element enters the viewport; CSS below performs all visual animation.
 */

:root {
  --ruo-motion-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ruo-navy: hsl(220, 52%, 16%);
  --ruo-gold: hsl(43, 68%, 42%);
  --ruo-motion-header-offset: 80px;
}

/* Smooth in-page anchor movement, matching the source site's scroll behavior. */
html.ruo-smooth-scroll {
  scroll-behavior: smooth;
  scroll-padding-top: var(--ruo-motion-header-offset);
}

/* ── Core entrance animations ─────────────────────────────────────────── */
@keyframes ruoFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ruoFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ruoScaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes ruoSlideFromLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ruoSlideFromRight {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ruoPanelReveal {
  from { opacity: 0; transform: translateY(14px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ruoListItem {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes ruoCardItem {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ruoDisplayUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ruoPageEnter {
  from { opacity: 0; transform: translateY(9px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ruoContentEnter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ruoContentExit {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-6px); }
}

@keyframes ruoDividerReveal {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

@keyframes ruoHeroAccent {
  from { opacity: 0; transform: scaleY(0); }
  to   { opacity: 0.22; transform: scaleY(1); }
}

@keyframes ruoHeroRule {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 0.6; transform: scaleX(1); }
}

/* Reveal classes: use with .ruo-reveal and the optional observer script. */
.ruo-reveal--fade-up.ruo-visible {
  animation: ruoFadeUp 0.55s var(--ruo-motion-ease) var(--ruo-delay, 0s) backwards;
}
.ruo-reveal--fade-in.ruo-visible {
  animation: ruoFadeIn 0.7s ease-out var(--ruo-delay, 0s) backwards;
}
.ruo-reveal--scale-in.ruo-visible {
  animation: ruoScaleIn 0.8s var(--ruo-motion-ease) var(--ruo-delay, 0s) backwards;
}
.ruo-reveal--slide-left.ruo-visible {
  animation: ruoSlideFromLeft 0.6s var(--ruo-motion-ease) var(--ruo-delay, 0s) backwards;
}
.ruo-reveal--slide-right.ruo-visible {
  animation: ruoSlideFromRight 0.6s var(--ruo-motion-ease) var(--ruo-delay, 0s) backwards;
}
.ruo-reveal--panel.ruo-visible {
  animation: ruoPanelReveal 0.65s var(--ruo-motion-ease) var(--ruo-delay, 0s) backwards;
}
.ruo-reveal--list-item.ruo-visible {
  animation: ruoListItem 0.42s var(--ruo-motion-ease) var(--ruo-delay, 0s) backwards;
}
.ruo-reveal--card.ruo-visible {
  animation: ruoCardItem 0.5s var(--ruo-motion-ease) var(--ruo-delay, 0s) backwards;
}
.ruo-reveal--display.ruo-visible {
  animation: ruoDisplayUp 0.8s var(--ruo-motion-ease) var(--ruo-delay, 0s) backwards;
}
.ruo-reveal--divider.ruo-visible {
  animation: ruoDividerReveal 0.7s var(--ruo-motion-ease) var(--ruo-delay, 0s) backwards;
  transform-origin: center;
}

/* JS-off fallback: content stays visible rather than being hidden. */
.ruo-js .ruo-reveal--fade-up:not(.ruo-visible) {
  opacity: 0;
  transform: translateY(16px);
}
.ruo-js .ruo-reveal--fade-in:not(.ruo-visible) { opacity: 0; }
.ruo-js .ruo-reveal--scale-in:not(.ruo-visible) {
  opacity: 0;
  transform: scale(0.97);
}
.ruo-js .ruo-reveal--slide-left:not(.ruo-visible) {
  opacity: 0;
  transform: translateX(-20px);
}
.ruo-js .ruo-reveal--slide-right:not(.ruo-visible) {
  opacity: 0;
  transform: translateX(18px);
}
.ruo-js .ruo-reveal--panel:not(.ruo-visible) {
  opacity: 0;
  transform: translateY(14px) scale(0.99);
}
.ruo-js .ruo-reveal--list-item:not(.ruo-visible) {
  opacity: 0;
  transform: translateX(-10px);
}
.ruo-js .ruo-reveal--card:not(.ruo-visible) {
  opacity: 0;
  transform: translateY(22px);
}
.ruo-js .ruo-reveal--display:not(.ruo-visible) {
  opacity: 0;
  transform: translateY(28px);
}
.ruo-js .ruo-reveal--divider:not(.ruo-visible) {
  opacity: 0;
  transform: scaleX(0);
}

/* ── Staggered groups ─────────────────────────────────────────────────── */
/* The script sets --ruo-i (0,1,2...) on each item, so any number of items and
   Elementor loop grids work. standard: 50ms + 90ms steps, fast: 0 + 60ms, slow: 80ms + 120ms. */
.ruo-stagger { --ruo-base: 0.05s; --ruo-step: 0.09s; }
.ruo-stagger--fast { --ruo-base: 0s; --ruo-step: 0.06s; }
.ruo-stagger--slow { --ruo-base: 0.08s; --ruo-step: 0.12s; }
.ruo-js .ruo-stagger:not(.ruo-visible) :is(.ruo-stagger-item, .e-loop-item) {
  opacity: 0;
  transform: translateY(22px);
}
.ruo-stagger.ruo-visible :is(.ruo-stagger-item, .e-loop-item) {
  animation: ruoCardItem 0.5s var(--ruo-motion-ease) backwards;
  animation-delay: calc(var(--ruo-base) + var(--ruo-i, 0) * var(--ruo-step));
}

/* ── Homepage hero entrance sequence ──────────────────────────────────── */
.ruo-hero-overline {
  animation: ruoFadeUp 0.55s var(--ruo-motion-ease) 0.38s backwards;
}
.ruo-hero-title-line-1 {
  animation: ruoDisplayUp 0.8s var(--ruo-motion-ease) 0.52s backwards;
}
.ruo-hero-title-line-2 {
  animation: ruoDisplayUp 0.8s var(--ruo-motion-ease) 0.68s backwards;
}
.ruo-hero-rule {
  animation: ruoHeroRule 0.7s var(--ruo-motion-ease) 0.9s both;
  transform-origin: center;
}
.ruo-hero-subtitle { animation: ruoFadeIn 0.65s ease 1.05s backwards; }
.ruo-hero-cta {
  animation: ruoFadeUp 0.55s var(--ruo-motion-ease) 1.18s backwards;
}
.ruo-hero-stats {
  animation: ruoFadeUp 0.5s var(--ruo-motion-ease) 1.38s backwards;
}
.ruo-hero-accent {
  animation: ruoHeroAccent 1.4s var(--ruo-motion-ease) 0.6s both;
  transform-origin: center;
}

/* Apply .ruo-page-enter to the top-level content container.
   A normal WordPress page load cannot animate the outgoing page. */
.ruo-page-enter {
  animation: ruoPageEnter 0.32s var(--ruo-motion-ease) backwards;
}

/* Catalogue filtered/curated result swaps. */
.ruo-content-switch {
  animation: ruoContentEnter 0.26s var(--ruo-motion-ease) backwards;
}
.ruo-content-switch.is-exiting {
  animation: ruoContentExit 0.2s var(--ruo-motion-ease) backwards;
}

/* Compliance page's three-part dark hero. */
.ruo-policy-overline { animation: ruoFadeUp 0.55s var(--ruo-motion-ease) backwards; }
.ruo-policy-title {
  animation: ruoDisplayUp 0.75s var(--ruo-motion-ease) 0.18s backwards;
}
.ruo-policy-subtitle {
  animation: ruoFadeUp 0.6s var(--ruo-motion-ease) 0.34s backwards;
}

/* Product detail sequence; assign to matching Elementor blocks. */
.ruo-product-visual { animation: ruoFadeIn 0.4s ease backwards; }
.ruo-product-details {
  animation: ruoSlideFromLeft 0.5s var(--ruo-motion-ease) 0.08s backwards;
}
.ruo-product-dose-row {
  animation: ruoFadeUp 0.6s var(--ruo-motion-ease) 0.18s backwards;
}
.ruo-product-divider {
  animation: ruoDividerReveal 0.45s var(--ruo-motion-ease) 0.32s backwards;
  transform-origin: left center;
}
.ruo-product-price {
  animation: ruoFadeUp 0.55s var(--ruo-motion-ease) 0.38s backwards;
}
.ruo-product-specs {
  animation: ruoFadeUp 0.55s var(--ruo-motion-ease) 0.5s backwards;
}
.ruo-product-add-panel {
  animation: ruoFadeUp 0.55s var(--ruo-motion-ease) 0.58s backwards;
}

/* Optional per-element entrance delays. */
.ruo-delay-1 { --ruo-delay: 0.08s; }
.ruo-delay-2 { --ruo-delay: 0.16s; }
.ruo-delay-3 { --ruo-delay: 0.24s; }
.ruo-delay-4 { --ruo-delay: 0.34s; }
.ruo-delay-5 { --ruo-delay: 0.52s; }
.ruo-delay-6 { --ruo-delay: 0.68s; }

/* ── Product cards and interactive elements ───────────────────────────── */
.ruo-product-card {
  position: relative;
  transition:
    transform 0.26s var(--ruo-motion-ease),
    border-color 0.26s var(--ruo-motion-ease),
    box-shadow 0.26s var(--ruo-motion-ease);
}
.ruo-product-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ruo-gold), #c6a74a);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ruo-motion-ease), opacity 0.28s var(--ruo-motion-ease);
}
.ruo-product-card:hover,
.ruo-product-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--ruo-gold);
  box-shadow: 0 0 0 1px var(--ruo-gold), 0 10px 24px rgba(10,20,60,0.12), 0 28px 56px rgba(10,20,60,0.09);
}
.ruo-product-card:hover::before,
.ruo-product-card:focus-within::before {
  opacity: 1;
  transform: scaleX(1);
}
.ruo-product-card__image img {
  transition: transform 0.6s var(--ruo-motion-ease);
}
.ruo-product-card:hover .ruo-product-card__image img,
.ruo-product-card:focus-within .ruo-product-card__image img {
  transform: scale(1.06);
}
.ruo-product-card__view { transition: opacity 0.2s var(--ruo-motion-ease); opacity: 0.55; }
.ruo-product-card:hover .ruo-product-card__view,
.ruo-product-card:focus-within .ruo-product-card__view { opacity: 1; }
.ruo-product-card__view-arrow { transition: transform 0.22s var(--ruo-motion-ease); }
.ruo-product-card:hover .ruo-product-card__view-arrow,
.ruo-product-card:focus-within .ruo-product-card__view-arrow { transform: translateX(5px); }

.ruo-product-card--sold-out:hover,
.ruo-product-card--sold-out:focus-within {
  transform: translateY(-4px);
  border-color: #bac0cc;
  box-shadow: 0 4px 14px rgba(10,20,60,0.06);
}
.ruo-product-card--sold-out::before { display: none; }

.ruo-choice-tile {
  transition: transform 0.2s var(--ruo-motion-ease), border-color 0.2s var(--ruo-motion-ease), box-shadow 0.2s var(--ruo-motion-ease);
}
.ruo-choice-tile:hover,
.ruo-choice-tile:focus-within {
  transform: translateY(-4px);
  border-color: var(--ruo-gold);
  box-shadow: 0 0 0 1px var(--ruo-gold), 0 8px 20px rgba(10,20,60,0.10);
}

.ruo-button-lift {
  transition: transform 0.2s var(--ruo-motion-ease), box-shadow 0.2s var(--ruo-motion-ease), background-color 0.2s ease;
}
.ruo-button-lift:not(.elementor-widget):hover,
.ruo-button-lift:not(.elementor-widget):focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(10,20,60,0.24);
}
.ruo-button-lift:not(.elementor-widget):active { transform: translateY(-1px); }

.ruo-button-lift--large:not(.elementor-widget):hover,
.ruo-button-lift--large:not(.elementor-widget):focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(10,20,60,0.22);
}
.ruo-link-lift {
  transition: transform 0.16s var(--ruo-motion-ease), color 0.16s ease, border-color 0.16s ease;
}
.ruo-link-lift:hover,
.ruo-link-lift:focus-visible { transform: translateY(-2px); }
.ruo-cart-item { transition: border-color 0.22s ease; }
.ruo-cart-item:hover { border-color: rgba(180,145,42,0.4); }
.ruo-soft-hover { transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.ruo-quantity-button { transition: background-color 0.2s ease, transform 0.15s ease; }
.ruo-quantity-button:active { transform: scale(0.93); }
.ruo-remove-button { transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease; }
.ruo-remove-button:active { transform: scale(0.95); }
.ruo-button-lift--subtle:not(.elementor-widget):hover,
.ruo-button-lift--subtle:not(.elementor-widget):focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10,20,60,0.22);
}
.ruo-button-shadow {
  transition: background-color 0.22s ease, box-shadow 0.22s ease;
}

/* ── Header/menu states ───────────────────────────────────────────────── */
.ruo-menu-toggle > * {
  transition: transform 0.22s var(--ruo-motion-ease);
}
.ruo-menu-toggle.is-open > *,
.ruo-menu-toggle.elementor-active > * { transform: rotate(90deg); }

.ruo-mobile-menu-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.32s var(--ruo-motion-ease), opacity 0.22s ease;
}
.ruo-mobile-menu-panel.is-open,
.ruo-mobile-menu-panel.elementor-active {
  max-height: 80vh;
  opacity: 1;
}
.ruo-mobile-search-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.28s var(--ruo-motion-ease), opacity 0.2s ease;
}
.ruo-mobile-search-panel.is-open,
.ruo-mobile-search-panel.elementor-active {
  max-height: 7rem;
  opacity: 1;
}
.ruo-header-search-control {
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.28s var(--ruo-motion-ease), opacity 0.2s ease;
}
.ruo-header-search-control.is-open {
  width: min(20rem, 40vw);
  opacity: 1;
}
.ruo-mobile-menu-item {
  opacity: 0;
  transform: translateX(-10px);
}
.ruo-mobile-menu-panel.is-open .ruo-mobile-menu-item,
.ruo-mobile-menu-panel.elementor-active .ruo-mobile-menu-item {
  animation: ruoSlideFromLeft 0.2s ease both;
}
.ruo-mobile-menu-panel.is-open .ruo-mobile-menu-item:nth-child(1) { animation-delay: 0s; }
.ruo-mobile-menu-panel.is-open .ruo-mobile-menu-item:nth-child(2) { animation-delay: 0.04s; }
.ruo-mobile-menu-panel.is-open .ruo-mobile-menu-item:nth-child(3) { animation-delay: 0.08s; }
.ruo-mobile-menu-panel.is-open .ruo-mobile-menu-item:nth-child(4) { animation-delay: 0.12s; }
.ruo-mobile-menu-panel.is-open .ruo-mobile-menu-item:nth-child(5) { animation-delay: 0.16s; }
.ruo-mobile-menu-panel.is-open .ruo-mobile-menu-item:nth-child(6) { animation-delay: 0.20s; }
.ruo-mobile-menu-panel.is-open .ruo-mobile-menu-item:nth-child(7) { animation-delay: 0.24s; }
.ruo-mobile-menu-panel.is-open .ruo-mobile-menu-item:nth-child(8) { animation-delay: 0.28s; }

/* ── Molecular SVG decoration ─────────────────────────────────────────── */
.ruo-molecule {
  opacity: 0;
  animation: ruoFadeIn 1.8s ease-out var(--ruo-delay, 1.2s) forwards;
}
.ruo-molecule__bond {
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: ruoDrawBond 1s var(--ruo-motion-ease) var(--ruo-delay, 1.5s) forwards;
}
@keyframes ruoDrawBond {
  to { stroke-dashoffset: 0; opacity: 0.55; }
}
.ruo-molecule__node {
  transform-box: fill-box;
  transform-origin: center;
  animation: ruoMoleculePulse var(--ruo-pulse-duration, 3.5s) ease-in-out var(--ruo-delay, 1.8s) infinite;
}
@keyframes ruoMoleculePulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.28); }
}

/* ── Small utility animations used by forms and content widgets ────────── */
.ruo-spin { animation: ruoSpin 0.9s linear infinite; }
@keyframes ruoSpin { to { transform: rotate(360deg); } }

.ruo-skeleton { animation: ruoSkeletonPulse 1.8s ease-in-out infinite; }
@keyframes ruoSkeletonPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

.ruo-accordion-panel[hidden] { display: none; }
.ruo-accordion-panel:not([hidden]) { animation: ruoFadeUp 0.22s ease backwards; }
.ruo-accordion-chevron { transition: transform 0.2s ease; }
.ruo-accordion[open] .ruo-accordion-chevron { transform: rotate(180deg); }

.ruo-modal-backdrop,
.ruo-modal-panel {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.ruo-modal-backdrop:not(.is-open) { opacity: 0; pointer-events: none; }
.ruo-modal-panel:not(.is-open) { opacity: 0; transform: scale(0.95); pointer-events: none; }
.ruo-modal-backdrop.is-open { opacity: 1; }
.ruo-modal-panel.is-open { opacity: 1; transform: scale(1); }

/* ── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html.ruo-smooth-scroll { scroll-behavior: auto; }
  [class*="ruo-"],
  [class*="ruo-"] *,
  body.ruo-motion main.site-main {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .ruo-js .ruo-reveal:not(.ruo-visible),
  .ruo-js .ruo-stagger:not(.ruo-visible) :is(.ruo-stagger-item, .e-loop-item) {
    opacity: 1 !important;
    transform: none !important;
  }
  .ruo-product-card:hover,
  .ruo-product-card:focus-within,
  .ruo-choice-tile:hover,
  .ruo-choice-tile:focus-within,
  .ruo-button-lift:hover,
  .ruo-button-lift:focus-visible,
  .ruo-button-lift--subtle:hover,
  .ruo-button-lift--subtle:focus-visible,
  .ruo-link-lift:hover,
  .ruo-link-lift:focus-visible,
  .ruo-product-card:hover .ruo-product-card__image img,
  .ruo-product-card:focus-within .ruo-product-card__image img {
    transform: none !important;
  }
  .ruo-molecule { opacity: 1; }
  .ruo-molecule__bond { opacity: 0.55; stroke-dashoffset: 0; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Additions made by the RUO Motion plugin (not in the original export)
   ═══════════════════════════════════════════════════════════════════════ */

/* Hold every animation while the age gate is on screen, so the hero sequence
   starts when the visitor enters the site rather than behind the popup. */
html.ukw-gate-on [class*="ruo-"],
html.ukw-gate-on [class*="ruo-"] *,
html.ukw-gate-on body.ruo-motion main.site-main {
  animation-play-state: paused !important;
}
/* The age gate runs its own fade in; body.ruo-motion matches the selectors above,
   so the gate must be put back to running or it stays invisible (blank page). */
html.ukw-gate-on #ukw-gate,
html.ukw-gate-on #ukw-gate *,
html.ukw-gate-on .ws-age-gate-overlay,
html.ukw-gate-on .ws-age-gate-overlay * {
  animation-play-state: running !important;
}

/* Page entry on every page (0.32s fade and rise). backwards fill: nothing is
   left behind afterwards, so sticky and fixed children keep working. */
body.ruo-motion main.site-main {
  animation: ruoPageEnter 0.32s var(--ruo-motion-ease) backwards;
}

/* Elementor buttons: the class sits on the widget, the lift moves the button. */
.elementor-widget.ruo-button-lift .elementor-button,
.elementor-widget.ruo-button-shadow .elementor-button {
  transition: transform 0.2s var(--ruo-motion-ease), box-shadow 0.2s var(--ruo-motion-ease), background-color 0.2s ease;
}
.elementor-widget.ruo-button-lift .elementor-button:hover,
.elementor-widget.ruo-button-lift .elementor-button:focus-visible {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 30px rgba(10, 20, 60, 0.24) !important;
}
.elementor-widget.ruo-button-lift .elementor-button:active { transform: translateY(-1px) !important; }
.elementor-widget.ruo-button-lift--large .elementor-button:hover,
.elementor-widget.ruo-button-lift--large .elementor-button:focus-visible {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(10, 20, 60, 0.22) !important;
}
.elementor-widget.ruo-button-lift--subtle .elementor-button:hover,
.elementor-widget.ruo-button-lift--subtle .elementor-button:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(10, 20, 60, 0.22) !important;
}
.elementor-widget.ruo-button-shadow .elementor-button:hover {
  box-shadow: 0 14px 30px rgba(10, 20, 60, 0.2) !important;
}

/* Product cards built as Elementor containers (loop item template). */
.ruo-product-card__view .elementor-button-icon,
.ruo-product-card__view .elementor-button-text { transition: transform 0.22s var(--ruo-motion-ease), opacity 0.2s var(--ruo-motion-ease); }
.ruo-product-card:hover .ruo-product-card__view .elementor-button-icon,
.ruo-product-card:focus-within .ruo-product-card__view .elementor-button-icon { transform: translateX(5px); }
.ruo-product-card__image { position: relative; overflow: hidden; }
.ruo-product-card__image > .elementor-widget,
.ruo-product-card__image > .e-con { position: relative; z-index: 2; }
.ruo-product-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.6s var(--ruo-motion-ease);
  pointer-events: none;
}
.ruo-product-card:hover .ruo-product-card__image::after,
.ruo-product-card:focus-within .ruo-product-card__image::after { transform: scale(1.06); }

/* Header: Elementor's menu toggle turns 90 degrees, dropdown links slide in. */
body.ruo-motion .elementor-menu-toggle > * { transition: transform 0.22s var(--ruo-motion-ease); }
body.ruo-motion .elementor-menu-toggle.elementor-active > * { transform: rotate(90deg); }
body.ruo-motion .elementor-menu-toggle.elementor-active ~ .elementor-nav-menu--dropdown .menu-item {
  animation: ruoSlideFromLeft 0.2s ease backwards;
}
body.ruo-motion .elementor-menu-toggle.elementor-active ~ .elementor-nav-menu--dropdown .menu-item:nth-child(1) { animation-delay: 0s; }
body.ruo-motion .elementor-menu-toggle.elementor-active ~ .elementor-nav-menu--dropdown .menu-item:nth-child(2) { animation-delay: 0.04s; }
body.ruo-motion .elementor-menu-toggle.elementor-active ~ .elementor-nav-menu--dropdown .menu-item:nth-child(3) { animation-delay: 0.08s; }
body.ruo-motion .elementor-menu-toggle.elementor-active ~ .elementor-nav-menu--dropdown .menu-item:nth-child(4) { animation-delay: 0.12s; }
body.ruo-motion .elementor-menu-toggle.elementor-active ~ .elementor-nav-menu--dropdown .menu-item:nth-child(5) { animation-delay: 0.16s; }
body.ruo-motion .elementor-menu-toggle.elementor-active ~ .elementor-nav-menu--dropdown .menu-item:nth-child(6) { animation-delay: 0.20s; }

/* WooCommerce cart and checkout controls. */
body.ruo-motion :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .single_add_to_cart_button) {
  transition: transform 0.2s var(--ruo-motion-ease), box-shadow 0.2s var(--ruo-motion-ease), background-color 0.2s ease;
}
body.ruo-motion :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .single_add_to_cart_button):hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(10, 20, 60, 0.22);
}
body.ruo-motion .wc-block-components-quantity-selector__button { transition: background-color 0.2s ease, transform 0.15s ease; }
body.ruo-motion .wc-block-components-quantity-selector__button:active { transform: scale(0.93); }
body.ruo-motion .wc-block-cart-item__remove-link { transition: background-color 0.2s ease, transform 0.15s ease; }
body.ruo-motion .wc-block-cart-item__remove-link:active { transform: scale(0.95); }
body.ruo-motion .wc-block-cart-items__row { transition: border-color 0.22s ease; }

/* Failsafe: only set by the head script if the reveal script never started. */
html.ruo-failsafe .ruo-reveal,
html.ruo-failsafe .ruo-stagger .ruo-stagger-item,
html.ruo-failsafe .ruo-stagger .e-loop-item { opacity: 1 !important; transform: none !important; }

/* Reduced motion for the additions above. */
@media (prefers-reduced-motion: reduce) {
  .elementor-widget.ruo-button-lift .elementor-button:hover,
  .elementor-widget.ruo-button-lift .elementor-button:focus-visible,
  .elementor-widget.ruo-button-lift .elementor-button:active,
  .elementor-widget.ruo-button-lift--large .elementor-button:hover,
  .elementor-widget.ruo-button-lift--subtle .elementor-button:hover,
  .ruo-product-card:hover .ruo-product-card__view .elementor-button-icon,
  body.ruo-motion .elementor-menu-toggle.elementor-active > *,
  body.ruo-motion :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button, .single_add_to_cart_button):hover,
  .ruo-product-card:hover .ruo-product-card__image::after {
    transform: none !important;
  }
  body.ruo-motion .elementor-menu-toggle.elementor-active ~ .elementor-nav-menu--dropdown .menu-item { animation: none !important; }
}


/* ─── Loop cards and tabs: the effect goes on the visible card, not the square wrapper ───
   Elementor wraps every loop item in a square slide or grid cell. The visible card inside it has
   its own shape (rounded tabs, square product cards), so ring and lift are applied to that. */
.e-loop-item.ruo-product-card::before { display: none; }
.e-loop-item.ruo-product-card:hover,
.e-loop-item.ruo-product-card:focus-within {
  transform: none;
  border-color: transparent;
  box-shadow: none;
}
.e-loop-item.ruo-product-card > .e-con {
  transition: transform 0.28s var(--ruo-motion-ease), box-shadow 0.28s var(--ruo-motion-ease), background-color 0.28s ease, border-color 0.28s ease;
}
/* Grid cards (products, categories): lift the card, ring follows its own corners. */
.e-loop-item.ruo-product-card:not(.swiper-slide):hover > .e-con,
.e-loop-item.ruo-product-card:not(.swiper-slide):focus-within > .e-con {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px var(--ruo-gold), 0 10px 24px rgba(10, 20, 60, 0.12), 0 24px 48px rgba(10, 20, 60, 0.08) !important;
}
/* Carousel tabs: slides clip anything outside them, so no lift and an inside ring that follows the pill. */
.e-loop-item.ruo-product-card.swiper-slide:hover > .e-con,
.e-loop-item.ruo-product-card.swiper-slide:focus-within > .e-con {
  transform: none;
  box-shadow: inset 0 0 0 1.5px var(--ruo-gold) !important;
}
@media (prefers-reduced-motion: reduce) {
  .e-loop-item.ruo-product-card:hover > .e-con,
  .e-loop-item.ruo-product-card:focus-within > .e-con { transform: none !important; }
}
