/* Sova Mart — 3D depth, glowing characters and video slides. Progressive enhancement:
 * tilt/parallax only with a mouse (fx3d.js), glow everywhere, all motion off for reduced-motion users. */

/* ---------- video slide ---------- */
.slide.video-slide { background: #0b0810 !important; }
.slide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.slide.video-slide::before { background: linear-gradient(0deg, rgba(8, 6, 12, .55), transparent 45%) !important; z-index: 1; }
.video-inner { position: relative; z-index: 2; align-self: flex-end; padding-bottom: 54px; }
@media (max-width: 760px) {
  .slide.video-slide.on { min-height: 260px !important; }
  .slide-video { object-fit: contain; background: #120a1c; }
}

/* ---------- glowing character tiles ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.char { position: relative; isolation: isolate; }
.char::before {                       /* rotating gold/pink light ring */
  content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: calc(var(--radius) + 3px); padding: 3px;
  background: conic-gradient(from var(--ang), #f2c14e, #ff7ab0, #c427b7, #ffe29a, #f2c14e);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ringSpin 4s linear infinite; animation-delay: calc(var(--i, 0) * -0.25s);
}
.char::after {                        /* soft pulsing halo (opacity only: cheap to animate) */
  content: ""; position: absolute; inset: -10px; z-index: -2; border-radius: calc(var(--radius) + 10px); pointer-events: none;
  box-shadow: 0 0 22px 6px rgba(242, 193, 78, .55), 0 0 46px 12px rgba(232, 69, 107, .35);
  animation: haloPulse 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.18s);
}
.char:hover::after { animation-duration: 1s; }
.char img { transition: filter .3s; }
.char:hover img { filter: saturate(1.15) brightness(1.05); }
@keyframes ringSpin { to { --ang: 360deg; } }
@keyframes haloPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* character slide (hero image) gets a gentle glow sweep too */
.slide-art[style*="hero-characters"], .slide[style*="shop-by-character"] { filter: saturate(1.1); }

/* ---------- 3D tilt (classes added by fx3d.js on mouse devices) ---------- */
/* doubled class so this wins over hover lifts and the cinematic scroll-reveal reset */
.fx-tilt.fx-tilt, html.cinematic .fx-tilt.fx-tilt { transform-style: preserve-3d; will-change: transform; transition: transform .25s ease-out, box-shadow .35s, border-color .35s;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(var(--tz, 0px)); }
.fx-tilt.fx-tilt.fx-active { transition: transform .08s linear, box-shadow .35s, border-color .35s; --tz: 14px; }
.fx-tilt .pvisual, .fx-tilt .cat-emoji, .fx-tilt .cat-img, .fx-tilt img { transform: translateZ(26px); }
.fx-tilt h3, .fx-tilt .price, .fx-tilt > span, .fx-tilt b { transform: translateZ(18px); }
.fx-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .32), transparent 45%); mix-blend-mode: soft-light; }
.fx-tilt.fx-active .fx-glare { opacity: 1; }
html.cinematic .fx-tilt.fx-active { box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 40px rgba(242, 193, 78, .25); }

/* hero depth: the logo art follows the pointer in 3D */
.brand-art { transform-style: preserve-3d; transition: transform .2s ease-out; transform: perspective(1000px) rotateY(var(--hy, 0deg)) rotateX(var(--hx, 0deg)); }
.brand-art .brand-owl { --depth: 60px; } .brand-art .brand-word { transform: translateZ(30px); }
.slider .slide-inner h1 { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); transition: transform .2s ease-out; }

/* floating section headings get subtle depth */
html.cinematic .section-head h2 { text-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .55); }

@media (prefers-reduced-motion: reduce) {
  .char::before, .char::after { animation: none; }
  .char::after { opacity: .7; }
  .fx-tilt, .brand-art, .slider .slide-inner h1 { transform: none !important; }
}
@media (max-width: 760px) {
  .char::before { animation-duration: 6s; }
}
