/* =========================================================================
   Shop page hero slider v2.
   Three layouts (orbit / collage / mosaic) x four transitions
   (iris / wipe / slide / zoom, picked by shop-banner-slider.js), with
   staggered headline reveals, particles, idle motion and cursor parallax.
   ========================================================================= */

.fmke-ssb {
  --mx: 0;
  --my: 0;
  --dir: 1;
  position: relative;
  isolation: isolate;
  height: var(--ssb-h, 390px);
  margin: 20px 0 28px;
  border-radius: 18px;
  overflow: hidden;
  background: #12183A;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  outline-offset: 3px;
  -webkit-tap-highlight-color: transparent;
  /* horizontal swipes go to the slider, vertical scrolling still works */
  touch-action: pan-y;
}
.fmke-ssb img { -webkit-user-drag: none; user-drag: none; }

.fmke-ssb__track { position: relative; width: 100%; height: 100%; }

/* category-page variant: shorter so products stay close to the top */
.fmke-ssb--cat { margin: 14px 0 22px; }
.fmke-ssb--cat .fmke-ssb__title { font-size: clamp(26px, 2.9vw, 42px); }
.fmke-ssb--cat .fmke-ssb__copy { gap: 12px; padding-bottom: 44px; }
.fmke-ssb--cat .fmke-ssb__tabs { bottom: 14px; }
.fmke-ssb--cat .fmke-ssb__tab { width: 124px; }

/* ---------- slide stacking + transitions ---------- */

.fmke-ssb__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  visibility: hidden;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
}
.fmke-ssb__slide.is-active  { visibility: visible; z-index: 2; }
.fmke-ssb__slide.is-leaving { visibility: visible; z-index: 1; }

/* iris: circle opens from where the user clicked (or the right side) */
.fmke-ssb[data-fx="iris"] .fmke-ssb__slide.is-active { animation: ssb-iris .95s cubic-bezier(.65,0,.25,1) both; }
@keyframes ssb-iris {
  from { clip-path: circle(0% at var(--ox, 78%) var(--oy, 50%)); }
  to   { clip-path: circle(150% at var(--ox, 78%) var(--oy, 50%)); }
}

/* wipe: slanted edge sweeps across */
.fmke-ssb[data-fx="wipe"] .fmke-ssb__slide.is-active { animation: ssb-wipe .9s cubic-bezier(.7,0,.2,1) both; }
@keyframes ssb-wipe {
  from { clip-path: polygon(0 0, 0 0, -30% 100%, 0 100%); }
  to   { clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%); }
}

/* slide: parallax push, artwork travels further than the background */
.fmke-ssb[data-fx="slide"] .fmke-ssb__slide.is-active  { animation: ssb-slide-in .8s cubic-bezier(.22,.8,.2,1) both; }
.fmke-ssb[data-fx="slide"] .fmke-ssb__slide.is-leaving { animation: ssb-slide-out .8s cubic-bezier(.5,0,.3,1) both; }
.fmke-ssb[data-fx="slide"] .fmke-ssb__slide.is-active .fmke-ssb__visual { animation: ssb-slide-vis 1s cubic-bezier(.22,.8,.2,1) both; }
@keyframes ssb-slide-in  { from { transform: translateX(calc(var(--dir) * 14%)); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ssb-slide-out { from { transform: none; opacity: 1; } to { transform: translateX(calc(var(--dir) * -22%)); opacity: 0; } }
@keyframes ssb-slide-vis { from { translate: calc(var(--dir) * 18%) 0; } to { translate: 0 0; } }

/* zoom: blurred push-in, old slide recedes */
.fmke-ssb[data-fx="zoom"] .fmke-ssb__slide.is-active  { animation: ssb-zoom-in .9s cubic-bezier(.2,.8,.2,1) both; }
.fmke-ssb[data-fx="zoom"] .fmke-ssb__slide.is-leaving { animation: ssb-zoom-out .7s ease both; }
@keyframes ssb-zoom-in  { from { transform: scale(1.14); filter: blur(10px); opacity: 0; } to { transform: none; filter: none; opacity: 1; } }
@keyframes ssb-zoom-out { from { transform: none; opacity: 1; } to { transform: scale(.92); filter: blur(6px); opacity: 0; } }

/* ---------- background layers ---------- */

.fmke-ssb__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--c1) 0%, var(--c2) 62%, var(--c3) 135%);
}
.fmke-ssb__tex {
  position: absolute;
  inset: -4%;
  background-size: cover;
  background-position: center;
  opacity: .22;
  mix-blend-mode: soft-light;
  animation: ssb-kenburns 18s ease-in-out infinite alternate;
}
@keyframes ssb-kenburns { from { transform: scale(1); } to { transform: scale(1.12) translate(-2%, 1%); } }

.fmke-ssb__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  background: var(--c3);
  animation: ssb-drift 12s ease-in-out infinite alternate;
}
.fmke-ssb__blob--a { width: 340px; height: 340px; right: 8%; top: -25%; }
.fmke-ssb__blob--b { width: 260px; height: 260px; left: 30%; bottom: -30%; background: var(--accent); opacity: .28; animation-duration: 16s; animation-direction: alternate-reverse; }
@keyframes ssb-drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-50px, 36px) scale(1.18); } }

.fmke-ssb__word {
  position: absolute;
  right: -1%;
  bottom: -9%;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: clamp(90px, 13vw, 180px);
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.16);
  transform: translate(calc(var(--mx) * -22px), calc(var(--my) * -10px));
  pointer-events: none;
  user-select: none;
}

/* ---------- particles (shape depends on the category) ---------- */

.fmke-ssb__particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fmke-ssb__particles i {
  position: absolute;
  top: -12%;
  width: var(--s);
  height: var(--s);
  background: rgba(255,255,255,.4);
  animation: ssb-fall var(--d) linear infinite;
}
.fmke-ssb__particles.is-flowers i { border-radius: 100% 0 100% 0; animation-name: ssb-sway; }
.fmke-ssb__particles.is-gifts i   { height: calc(var(--s) * .5); border-radius: 2px; background: var(--accent); opacity: .75; }
.fmke-ssb__particles.is-rentals i {
  top: var(--t);
  background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: ssb-twinkle calc(var(--d) * .35) ease-in-out infinite;
}
@keyframes ssb-fall    { from { transform: translateY(0) rotate(0); } to { transform: translateY(520px) rotate(540deg); } }
@keyframes ssb-sway    { 0% { transform: translate(0,0) rotate(0); } 50% { transform: translate(40px,260px) rotate(200deg); } 100% { transform: translate(-10px,520px) rotate(380deg); } }
@keyframes ssb-twinkle { 0%,100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: .9; } }

/* ---------- copy ---------- */

.fmke-ssb__copy {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 3;
  box-sizing: border-box;
  width: min(46%, 520px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 0 50px 5%;
}

.fmke-ssb__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.fmke-ssb__badge i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: ssb-pulse 1.6s ease-out infinite;
}
@keyframes ssb-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 100% { box-shadow: 0 0 0 9px rgba(255,255,255,0); } }

.fmke-ssb__title {
  margin: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.5px;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0,0,0,.25);
}
.fmke-ssb__w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .1em; margin-bottom: -.1em; }
.fmke-ssb__w > span { display: inline-block; transform: translateY(115%); }

.fmke-ssb__sub { margin: 0; max-width: 40ch; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.92); }

.fmke-ssb__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-top: 4px; }

.fmke-ssb__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 7px 7px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--c1) !important;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.fmke-ssb__cta b {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c1); color: #fff; font-size: 16px;
  transition: transform .25s ease;
}
.fmke-ssb__cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 28px rgba(0,0,0,.32); }
.fmke-ssb__cta:hover b { transform: translateX(4px) rotate(-12deg); }
.fmke-ssb__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fmke-ssb__perk { font-size: 12.5px; font-weight: 600; opacity: .85; }

/* staggered entrance for the non-headline copy + cards */
.fmke-ssb__badge, .fmke-ssb__sub, .fmke-ssb__actions { opacity: 0; transform: translateY(18px); }
.fmke-ssb__slide.is-active .fmke-ssb__badge,
.fmke-ssb__slide.is-active .fmke-ssb__sub,
.fmke-ssb__slide.is-active .fmke-ssb__actions {
  animation: ssb-rise .7s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--i, 0) * 90ms + 260ms);
}
.fmke-ssb__slide.is-active .fmke-ssb__w > span {
  animation: ssb-word .85s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(var(--w) * 85ms + 330ms);
}
@keyframes ssb-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ssb-word { from { transform: translateY(115%) rotate(4deg); } to { transform: none; } }

/* the slide that is LEAVING keeps everything visible while it transitions out */
.fmke-ssb__slide.is-leaving .fmke-ssb__badge,
.fmke-ssb__slide.is-leaving .fmke-ssb__sub,
.fmke-ssb__slide.is-leaving .fmke-ssb__actions,
.fmke-ssb__slide.is-leaving .fmke-ssb__card { opacity: 1; transform: none; }
.fmke-ssb__slide.is-leaving .fmke-ssb__w > span { transform: none; }

/* ---------- shared product card ---------- */

.fmke-ssb__visual { position: absolute; top: 0; right: 0; bottom: 0; width: 52%; z-index: 2; pointer-events: none; }

.fmke-ssb__card { margin: 0; width: 100%; height: 100%; opacity: 0; }
.fmke-ssb__slide.is-active .fmke-ssb__card {
  animation: ssb-pop .85s cubic-bezier(.2,.9,.3,1.25) both;
  animation-delay: calc(var(--i, 0) * 110ms + 380ms);
}
@keyframes ssb-pop { from { opacity: 0; transform: translateY(46px) scale(.78); } to { opacity: 1; transform: none; } }

.fmke-ssb__bob { position: relative; width: 100%; height: 100%; animation: ssb-bob 5s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.9s); }
@keyframes ssb-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.fmke-ssb__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.16);
  border: 3px solid rgba(255,255,255,.92);
  box-shadow: 0 18px 34px rgba(0,0,0,.35);
}
.fmke-ssb__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fmke-ssb__art { width: 70%; height: 100%; display: block; margin: 0 auto; }

.fmke-ssb__card figcaption {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  display: flex; flex-direction: column; gap: 1px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  color: #1b1b1b;
  line-height: 1.25;
  box-shadow: 0 6px 14px rgba(0,0,0,.2);
}
.fmke-ssb__name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmke-ssb__price { font-size: 13px; font-weight: 800; color: var(--c1); }
.fmke-ssb__price .woocommerce-Price-amount { color: inherit; }
.fmke-ssb__price del { opacity: .5; font-weight: 500; margin-right: 4px; }
.fmke-ssb__price ins { text-decoration: none; }
.fmke-ssb__sale {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 9px; border-radius: 999px;
  background: #E0201E; color: #fff;
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase;
}

/* ---------- layout 1: ORBIT (hero product + 4 orbiting satellites) ---------- */

.fmke-ssb__orbit {
  position: absolute;
  top: 4%;
  right: 15%;
  height: 92%;
  aspect-ratio: 1;
  transform: translate(calc(var(--mx) * 14px), calc(var(--my) * 8px));
}
.fmke-ssb__ring {
  position: absolute; inset: 9%;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.4);
  animation: ssb-spin 60s linear infinite;
}
.fmke-ssb__hero { position: absolute; left: 25%; top: 25%; width: 50%; height: 50%; }
.fmke-ssb__hero .fmke-ssb__photo { height: 100%; aspect-ratio: auto; border-radius: 50%; border-width: 4px; }
.fmke-ssb__hero .fmke-ssb__card figcaption { left: 12%; right: 12%; bottom: 8%; text-align: center; border-radius: 999px; padding: 6px 10px; }
.fmke-ssb__hero .fmke-ssb__sale { top: 6%; left: 50%; transform: translateX(-50%); }

.fmke-ssb__spin { position: absolute; inset: 0; animation: ssb-spin 42s linear infinite; }
.fmke-ssb__sat { position: absolute; width: 22%; aspect-ratio: 1; }
.fmke-ssb__unspin { width: 100%; height: 100%; animation: ssb-spin 42s linear infinite reverse; }
.fmke-ssb__sat .fmke-ssb__photo { height: 100%; aspect-ratio: auto; border-radius: 50%; border-width: 3px; }
.fmke-ssb__sat .fmke-ssb__bob { animation: none; }
@keyframes ssb-spin { to { transform: rotate(360deg); } }

/* ---------- layout 2: COLLAGE (three tilted cards, cursor parallax) ---------- */

.fmke-ssb__slot { position: absolute; }
.fmke-ssb__slot--1 { left: 3%;  top: 17%; width: 30%; --k: 1.2; --r: -7deg; }
.fmke-ssb__slot--2 { left: 34%; top: 6%;  width: 32%; --k: .6;  --r: 2deg;  z-index: 2; }
.fmke-ssb__slot--3 { left: 66%; top: 21%; width: 30%; --k: 1.6; --r: 8deg; }
.fmke-ssb__slot {
  transform: translate(calc(var(--mx) * var(--k) * 18px), calc(var(--my) * var(--k) * 10px)) rotate(var(--r));
}
.fmke-ssb__slot--2 .fmke-ssb__photo { box-shadow: 0 26px 44px rgba(0,0,0,.42); }

/* ---------- layout 3: MOSAIC (tilted 3D tile wall) ---------- */

.fmke-ssb__mosaic {
  position: absolute;
  top: 11%; bottom: 14%; left: 4%; right: 10%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  transform: perspective(1100px) rotateY(calc(-13deg + var(--mx) * 5deg)) rotateX(calc(3deg + var(--my) * -3deg));
  transform-style: preserve-3d;
}
.fmke-ssb__tile { min-height: 0; }
.fmke-ssb__tile--1 { grid-column: 1; grid-row: 1 / span 2; }
.fmke-ssb__tile--2 { grid-column: 2; grid-row: 1; }
.fmke-ssb__tile--3 { grid-column: 3; grid-row: 1 / span 2; }
.fmke-ssb__tile--4 { grid-column: 2; grid-row: 2; }
.fmke-ssb__tile .fmke-ssb__photo { height: 100%; aspect-ratio: auto; border-radius: 14px; border-width: 2px; }
.fmke-ssb__tile .fmke-ssb__art { width: 60%; }
.fmke-ssb__tile--2 figcaption, .fmke-ssb__tile--4 figcaption { display: none; }

/* ---------- controls ---------- */

.fmke-ssb__arrow {
  position: absolute; top: 50%; margin-top: -20px;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.88); color: #1F3D2C;
  cursor: pointer; opacity: 0; z-index: 5;
  transition: opacity .2s ease, transform .15s ease;
}
.fmke-ssb:hover .fmke-ssb__arrow, .fmke-ssb:focus-within .fmke-ssb__arrow { opacity: 1; }
.fmke-ssb__arrow:hover { transform: scale(1.1); background: #fff; }
.fmke-ssb__arrow--prev { left: 14px; }
.fmke-ssb__arrow--next { right: 14px; }

.fmke-ssb__pause {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.25); color: #fff;
  backdrop-filter: blur(6px);
  display: grid; place-items: center; cursor: pointer;
}
.fmke-ssb__pause .i-play { display: none; }
.fmke-ssb.is-user-paused .fmke-ssb__pause .i-play { display: block; }
.fmke-ssb.is-user-paused .fmke-ssb__pause .i-pause { display: none; }

.fmke-ssb__tabs {
  position: absolute; z-index: 5;
  left: 5%; bottom: 16px;
  display: flex; gap: 10px;
}
.fmke-ssb__tab {
  display: flex; flex-direction: column; gap: 6px;
  width: 112px; padding: 6px 0 0; border: 0; background: none;
  color: rgba(255,255,255,.7); cursor: pointer; text-align: left;
  font: inherit;
}
.fmke-ssb__tab.is-active { color: #fff; }
.fmke-ssb__tabbar { display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.fmke-ssb__tabbar em { display: block; height: 100%; width: 0; background: #fff; }
.fmke-ssb__tab.is-done .fmke-ssb__tabbar em { width: 100%; }
.fmke-ssb__tab.is-active .fmke-ssb__tabbar em { animation: ssb-fill var(--ssb-int, 6s) linear both; }
.fmke-ssb.is-paused .fmke-ssb__tab.is-active .fmke-ssb__tabbar em { animation-play-state: paused; }
@keyframes ssb-fill { from { width: 0; } to { width: 100%; } }
.fmke-ssb__tablabel { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.fmke-ssb__tab:focus-visible, .fmke-ssb__pause:focus-visible, .fmke-ssb__arrow:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- mobile ---------- */

@media (max-width: 782px) {
  .fmke-ssb { height: 410px; border-radius: 14px; margin: 14px 0 20px; }
  .fmke-ssb--cat { margin: 10px 0 18px; }
  .fmke-ssb--cat .fmke-ssb__title { font-size: 24px; }
  .fmke-ssb--cat .fmke-ssb__copy { gap: 8px; padding-top: 18px; }
  .fmke-ssb--cat .fmke-ssb__visual { height: 46%; bottom: 40px; }
  .fmke-ssb--cat .fmke-ssb__mosaic { top: 8%; }
  .fmke-ssb__copy { width: 100%; right: 0; bottom: auto; height: 50%; justify-content: flex-start; gap: 10px; padding: 20px 20px 0; }
  .fmke-ssb__title { font-size: 28px; }
  .fmke-ssb__sub { display: none; }
  .fmke-ssb__perk { display: none; }
  .fmke-ssb__cta { font-size: 14px; padding-left: 18px; }
  .fmke-ssb__cta b { width: 30px; height: 30px; }
  .fmke-ssb__visual { top: auto; left: 0; width: 100%; height: 50%; bottom: 40px; }
  .fmke-ssb__orbit { height: 100%; top: 0; left: 50%; right: auto; translate: -50% 0; }
  .fmke-ssb__slot--1 { left: 6%;  top: 8%;  width: 26%; }
  .fmke-ssb__slot--2 { left: 37%; top: 0;   width: 27%; }
  .fmke-ssb__slot--3 { left: 68%; top: 10%; width: 26%; }
  .fmke-ssb__mosaic { top: 4%; bottom: 4%; left: 6%; right: 6%; gap: 8px; }
  .fmke-ssb__card figcaption { display: none; }
  .fmke-ssb__word { font-size: 84px; bottom: 8%; }
  .fmke-ssb__arrow, .fmke-ssb__blob--a { display: none; }
  .fmke-ssb__pause { top: 10px; right: 10px; }
  .fmke-ssb__tabs { left: 20px; right: 20px; bottom: 14px; gap: 8px; }
  .fmke-ssb__tab, .fmke-ssb--cat .fmke-ssb__tab { flex: 1; width: auto; }
  .fmke-ssb__tablabel { font-size: 10px; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- reduced motion: static, fully visible, manual navigation ---------- */

@media (prefers-reduced-motion: reduce) {
  .fmke-ssb *, .fmke-ssb *::before, .fmke-ssb *::after { animation: none !important; transition: none !important; }
  .fmke-ssb__badge, .fmke-ssb__sub, .fmke-ssb__actions, .fmke-ssb__card { opacity: 1; transform: none; }
  .fmke-ssb__w > span { transform: none; }
  .fmke-ssb__particles { display: none; }
  .fmke-ssb__tab.is-active .fmke-ssb__tabbar em { width: 100%; }
}
