/* ── Shopodel Slider – Frontend CSS ──────────────────────────── */
:root {
  --ss-btn-color:       #e63946;
  --ss-btn-text:        #ffffff;
  --ss-heading-size:    3rem;
  --ss-heading-color:   #ffffff;
  --ss-heading-font:    inherit;
  --ss-sub-color:       #ffffff;
  --ss-dots-color:      #ffffff;
  --ss-kenburns-speed:  8000ms;
  --ss-transition:      900ms;
}

.ss-wrapper {
  position: relative;
  width:    var(--ss-width, 100%);
  height:   var(--ss-height, 600px);
  overflow: hidden;
  background: #111;
  font-family: inherit;
}
.ss-wrapper.ss-fullscreen { height: 100vh; }

/* ── Track & Slides ─────────────────────────────────────────── */
.ss-track { position: absolute; inset: 0; }

.ss-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--ss-transition) ease;
  pointer-events: none;
}
.ss-slide.ss-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* ── Ken Burns background ───────────────────────────────────── */
.ss-bg {
  position: absolute;
  inset: -8%;
  background-size:     cover;
  background-position: center;
  background-repeat:   no-repeat;
  animation: none;
  will-change: transform;
}
/* Image fit variants */
.ss-bg.ss-fit-contain {
  inset: 0;
  background-size:  contain;
  background-color: #000;
}
.ss-bg.ss-fit-fill {
  inset: -8%;
  background-size: 100% 100%;
}
.ss-slide.ss-active .ss-bg {
  animation: ss-kenburns var(--ss-kenburns-speed) ease-in-out forwards;
}

/* 4 random-feel Ken Burns variations — cycles via nth-child */
@keyframes ss-kenburns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -1%); }
}
.ss-slide:nth-child(2).ss-active .ss-bg {
  animation-name: ss-kenburns-2;
}
@keyframes ss-kenburns-2 {
  0%   { transform: scale(1.1)  translate(-1%, 1%); }
  100% { transform: scale(1)    translate(1%, -1%); }
}
.ss-slide:nth-child(3).ss-active .ss-bg {
  animation-name: ss-kenburns-3;
}
@keyframes ss-kenburns-3 {
  0%   { transform: scale(1)    translate(1%, 0); }
  100% { transform: scale(1.1)  translate(-1%, 1%); }
}
.ss-slide:nth-child(4).ss-active .ss-bg {
  animation-name: ss-kenburns-4;
}
@keyframes ss-kenburns-4 {
  0%   { transform: scale(1.08) translate(0, -1%); }
  100% { transform: scale(1)    translate(1%,  1%); }
}

/* ── Overlay ────────────────────────────────────────────────── */
.ss-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.35; /* overridden by inline style per-slide */
  z-index: 1;
}

/* ── Content ────────────────────────────────────────────────── */
.ss-content {
  position: absolute !important;
  inset: 0 !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px;
  padding: 40px;
  box-sizing: border-box;
  color: #fff;
}

/* Position variants */
.ss-pos-center        { align-items: center !important;     justify-content: center !important;     text-align: center !important; }
.ss-pos-center-left   { align-items: flex-start !important; justify-content: center !important;     text-align: left !important; }
.ss-pos-center-right  { align-items: flex-end !important;   justify-content: center !important;     text-align: right !important; }
.ss-pos-top-left      { align-items: flex-start !important; justify-content: flex-start !important; text-align: left !important; }
.ss-pos-top-center    { align-items: center !important;     justify-content: flex-start !important; text-align: center !important; }
.ss-pos-top-right     { align-items: flex-end !important;   justify-content: flex-start !important; text-align: right !important; }
.ss-pos-bottom-left   { align-items: flex-start !important; justify-content: flex-end !important;   text-align: left !important; }
.ss-pos-bottom-center { align-items: center !important;     justify-content: flex-end !important;   text-align: center !important; }
.ss-pos-bottom-right  { align-items: flex-end !important;   justify-content: flex-end !important;   text-align: right !important; }

/* ── Text animate in ────────────────────────────────────────── */
.ss-slide.ss-active .ss-heading,
.ss-slide.ss-active .ss-sub,
.ss-slide.ss-active .ss-btn {
  animation: ss-fadein 0.9s ease both;
}
.ss-slide.ss-active .ss-sub  { animation-delay: 0.2s; }
.ss-slide.ss-active .ss-btn  { animation-delay: 0.4s; }

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

.ss-heading {
  margin: 0;
  font-size:      var(--ss-heading-size,  3rem);
  font-family:    var(--ss-heading-font,  inherit);
  color:          var(--ss-heading-color, #ffffff);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0,0,0,.45);
  max-width: 800px;
}
.ss-sub {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--ss-sub-color, #ffffff);
  opacity: .92;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  max-width: 600px;
}

/* ── CTA Button ─────────────────────────────────────────────── */
.ss-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--ss-btn-color, #e63946);
  color: var(--ss-btn-text, #fff) !important;
  text-decoration: none !important;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: .03em;
  text-transform: uppercase;
  transition: opacity .2s, transform .2s;
  margin-top: 6px;
  border: 2px solid transparent;
}
.ss-btn:hover { opacity: .88; transform: translateY(-2px); }

/* Outline style */
.ss-btn-outline {
  background: transparent !important;
  border-color: var(--ss-btn-color, #e63946) !important;
  color: var(--ss-btn-color, #e63946) !important;
}
/* Pill style */
.ss-btn-pill { border-radius: 50px !important; }

/* ── Dots ───────────────────────────────────────────────────── */
.ss-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.ss-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.45);
  border: 2px solid var(--ss-dots-color, #fff);
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s;
}
.ss-dot-active {
  background: var(--ss-dots-color, #fff);
  transform: scale(1.3);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ss-heading { font-size: clamp(1.6rem, 6vw, 2.6rem); }
  .ss-sub     { font-size: .95rem; }
  .ss-btn     { padding: 11px 26px; font-size: .9rem; }
  .ss-content { padding: 28px 22px; }
}
