/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

/* =====================================================================
   FX LAYER — animations, 3D tilt, glass & glow
   Toggle from Theme Settings: "Animations & 3D Effects" / "Animated Background"
   ===================================================================== */

:root {
  --fx-ease: cubic-bezier(.22, 1, .36, 1);
  --fx-glow: 0 0 0 1px rgba(var(--cl-accent), .35), 0 18px 50px -12px rgba(var(--cl-accent), .45);
  --fx-mx: 50%;
  --fx-my: 50%;
}

::selection { background: rgba(var(--cl-accent), .55); color: #fff; }

html { scrollbar-color: rgba(var(--cl-accent), .6) rgb(var(--cl-background)); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgb(var(--cl-background)); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(rgba(var(--cl-accent), .8), rgba(var(--cl-accent), .4));
  border-radius: 999px;
  border: 2px solid rgb(var(--cl-background));
}

/* ---------- Animated background ---------- */
.fx-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.fx-bg__blob {
  position: absolute;
  width: 46vmax;
  height: 46vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .33;
  background: radial-gradient(circle at 30% 30%, rgba(var(--cl-accent), 1), rgba(var(--cl-accent), 0) 68%);
  will-change: transform;
}
.fx-bg__blob--1 { top: -18vmax; left: -12vmax; animation: fx-drift-1 26s ease-in-out infinite alternate; }
.fx-bg__blob--2 { bottom: -22vmax; right: -14vmax; opacity: .24; animation: fx-drift-2 32s ease-in-out infinite alternate; }
.fx-bg__blob--3 {
  top: 35%; left: 45%; width: 30vmax; height: 30vmax; opacity: .16;
  background: radial-gradient(circle, rgba(var(--cl-accent), 1), rgba(var(--cl-accent), 0) 70%);
  filter: blur(80px) hue-rotate(40deg);
  animation: fx-drift-3 22s ease-in-out infinite alternate;
}

.fx-bg__grid {
  position: absolute;
  inset: -50% -50% 0 -50%;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(700px) rotateX(62deg) translateY(-8%);
  transform-origin: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 0%, #000 0%, transparent 75%);
  animation: fx-grid 18s linear infinite;
}

.fx-bg__noise {
  position: absolute;
  inset: 0;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes fx-drift-1 { to { transform: translate3d(18vw, 14vh, 0) scale(1.15); } }
@keyframes fx-drift-2 { to { transform: translate3d(-20vw, -12vh, 0) scale(1.2); } }
@keyframes fx-drift-3 { 0% { transform: translate3d(-30%, -20%, 0) scale(.9); } 100% { transform: translate3d(10%, 15%, 0) scale(1.15); } }
@keyframes fx-grid { to { background-position: 0 56px, 0 0; } }

/* Cursor spotlight (desktop) */
.fx-spotlight {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
  background: radial-gradient(600px circle at var(--fx-mx) var(--fx-my), rgba(var(--cl-accent), .10), transparent 45%);
}
.fx-pointer .fx-spotlight { opacity: 1; }

/* Scroll progress bar */
.fx-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 10000;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(var(--cl-accent), .2), rgba(var(--cl-accent), 1), #fff);
  box-shadow: 0 0 12px rgba(var(--cl-accent), .9);
  pointer-events: none;
}

/* ---------- Glass surfaces ---------- */
.fx-on .fx-glass,
.fx-on nav .bg-card {
  background-color: rgba(var(--cl-card), .72);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
}

/* ---------- Header ---------- */
.fx-header-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-image:
    radial-gradient(120% 140% at 0% 0%, rgba(var(--cl-accent), .22), transparent 55%),
    radial-gradient(80% 120% at 100% 100%, rgba(var(--cl-accent), .12), transparent 60%);
}
/* sweeping light */
.fx-header-panel::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 40%;
  left: -50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .06), transparent);
  transform: skewX(-20deg);
  animation: fx-sweep 7s var(--fx-ease) infinite;
  pointer-events: none;
}
@keyframes fx-sweep { 0%, 60% { left: -50%; } 100% { left: 130%; } }

.fx-gradient-border { position: relative; }
.fx-gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--fx-angle, 0deg), transparent 0 60%, rgba(var(--cl-accent), .9) 75%, #fff 80%, rgba(var(--cl-accent), .9) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: fx-spin 6s linear infinite;
  pointer-events: none;
  z-index: 2;
}
@property --fx-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes fx-spin { to { --fx-angle: 360deg; } }

.fx-logo {
  animation: fx-float 6s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(var(--cl-accent), .45));
}
@keyframes fx-float { 50% { transform: translateY(-4px) rotate(-2deg); } }

.fx-title {
  background: linear-gradient(90deg, rgb(var(--cl-t-primary)) 0%, rgb(var(--cl-t-primary)) 35%, color-mix(in srgb, rgb(var(--cl-accent)) 70%, white) 50%, rgb(var(--cl-t-primary)) 65%, rgb(var(--cl-t-primary)) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fx-text-shine 6s linear infinite;
}
@keyframes fx-text-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }

.fx-stat { transition: transform .4s var(--fx-ease); }
.fx-stat:hover { transform: translateY(-3px) scale(1.04); }
.fx-stat .fx-count {
  text-shadow: 0 0 24px rgba(var(--cl-accent), .55);
}

/* ---------- Nav pills ---------- */
.fx-on nav a,
.fx-on nav button {
  transition: transform .35s var(--fx-ease), background-color .25s, color .25s, box-shadow .35s var(--fx-ease), border-color .25s;
}
.fx-on nav a:hover,
.fx-on nav button:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--cl-accent), .45);
  box-shadow: 0 10px 25px -10px rgba(var(--cl-accent), .7);
}
.fx-on nav a.text-accent-500 {
  box-shadow: inset 0 0 0 1px rgba(var(--cl-accent), .5), 0 0 20px -4px rgba(var(--cl-accent), .6);
}

/* ---------- Section titles ---------- */
.fx-on .component h2.border-l-4 {
  position: relative;
  border-left: 0;
  padding-left: 1rem;
  letter-spacing: -.01em;
}
.fx-on .component h2.border-l-4::before {
  content: "";
  position: absolute;
  left: 0; top: .15em; bottom: .15em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #fff, rgb(var(--cl-accent)) 40%, rgba(var(--cl-accent), .2));
  box-shadow: 0 0 14px rgba(var(--cl-accent), .9);
}
.fx-on .component h2.border-l-4::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: .6rem;
  width: 0;
  background: linear-gradient(90deg, rgba(var(--cl-accent), .8), transparent);
  transition: width 1.2s var(--fx-ease) .2s;
}
.fx-on .component.is-in h2.border-l-4::after,
.fx-on .component:not(.fx-reveal) h2.border-l-4::after { width: min(320px, 70%); }

/* ---------- Search ---------- */
.fx-on .component .focus-within\:border-accent-500 {
  transition: box-shadow .35s var(--fx-ease), border-color .25s, transform .35s var(--fx-ease);
}
.fx-on .component .focus-within\:border-accent-500:focus-within {
  box-shadow: 0 0 0 4px rgba(var(--cl-accent), .15), 0 10px 40px -10px rgba(var(--cl-accent), .6);
  transform: translateY(-1px);
}

/* ---------- 3D product / category cards ---------- */
.fx-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .6s var(--fx-ease), box-shadow .6s var(--fx-ease), border-color .3s;
  will-change: transform;
}
.fx-card .fx-card__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
  background: radial-gradient(500px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .14), transparent 40%);
  z-index: 3;
}
.fx-card::after {
  /* accent rim lit by the cursor */
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 0%), rgba(var(--cl-accent), 1), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
  z-index: 4;
}
.fx-card:hover { box-shadow: var(--fx-glow); border-color: transparent; }
.fx-card:hover .fx-card__glare,
.fx-card:hover::after { opacity: 1; }

.fx-card img {
  transition: transform .8s var(--fx-ease), filter .6s;
}
.fx-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.15) brightness(1.05);
}
/* depth layers — pop out in 3D while tilting */
.fx-card .fx-depth-1 { transform: translateZ(18px); transition: transform .6s var(--fx-ease); }
.fx-card .fx-depth-2 { transform: translateZ(34px); transition: transform .6s var(--fx-ease); }

.fx-card .badges > div {
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, .6);
  animation: fx-badge 2.8s ease-in-out infinite;
}
@keyframes fx-badge { 50% { transform: translateY(-2px); } }

.fx-card .fx-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap .35s var(--fx-ease), color .25s;
}
.fx-card:hover .fx-cta { gap: .7rem; }

/* ---------- Buttons ---------- */
.fx-on .bg-accent-500:is(button, a) {
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--fx-ease), box-shadow .3s var(--fx-ease), filter .3s;
}
.fx-on .bg-accent-500:is(button, a):hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -8px rgba(var(--cl-accent), .85);
  filter: brightness(1.08);
}
.fx-on .bg-accent-500:is(button, a)::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -75%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--fx-ease);
  pointer-events: none;
}
.fx-on .bg-accent-500:is(button, a):hover::after { left: 130%; }
.fx-on .bg-accent-500:is(button, a):active { transform: scale(.97); }

.fx-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, .35);
  animation: fx-ripple .65s ease-out forwards;
  pointer-events: none;
}
@keyframes fx-ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Product page ---------- */
.fx-on .splide.main {
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(var(--cl-accent), .55);
}

/* ---------- Footer ---------- */
.fx-on footer {
  position: relative;
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  background-color: rgba(var(--cl-background), .6);
}
.fx-on footer::before {
  content: "";
  position: absolute;
  top: -1px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--cl-accent), 1), transparent);
  box-shadow: 0 0 18px rgba(var(--cl-accent), .9);
}
.fx-on footer a[target] svg { transition: transform .35s var(--fx-ease); }
.fx-on footer a[target]:hover svg { transform: translateY(-3px) scale(1.15); }

/* ---------- Modals ---------- */
.fx-on .bg-black\/75 {
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}

/* ---------- Scroll reveal ---------- */
.fx-js .fx-reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity .9s var(--fx-ease), translate .9s var(--fx-ease);
  transition-delay: var(--fx-delay, 0s);
}
.fx-js .fx-reveal.is-in { opacity: 1; translate: none; }

.fx-js .fx-card.fx-reveal {
  translate: 0 36px;
  scale: .96;
  transition: opacity .9s var(--fx-ease) var(--fx-delay, 0s), translate .9s var(--fx-ease) var(--fx-delay, 0s), scale .9s var(--fx-ease) var(--fx-delay, 0s), transform .6s var(--fx-ease), box-shadow .6s var(--fx-ease), border-color .3s;
}
.fx-js .fx-card.fx-reveal.is-in { scale: none; }

/* Page enter */
.fx-on #app { animation: fx-enter .8s var(--fx-ease) both; }
@keyframes fx-enter { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Accessibility / low-power ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .fx-js .fx-reveal { opacity: 1; translate: none; scale: none; }
  .fx-card { transform: none !important; }
}

@media (max-width: 767px) {
  .fx-bg__blob { filter: blur(60px); }
  .fx-bg__grid { background-size: 40px 40px; }
}
