/* Home Sliding Banner — replaces Elfsight slider on storefront */

.sg-home-slider {
  --sg-slider-h-desktop: 520px;
  --sg-slider-h-mobile: 360px;
  position: relative;
  width: 100%;
  height: var(--sg-slider-h-desktop);
  overflow: hidden;
  background: #0b1220;
  color: #fff;
}

.sg-home-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.sg-home-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 1;
}

.sg-home-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.sg-home-slider__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.sg-home-slider__media--image {
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.sg-home-slider__media--bg-video,
.sg-home-slider__media--video {
  overflow: hidden;
}

.sg-home-slider__media--bg-video iframe,
.sg-home-slider__media--video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sg-home-slider__slide--video .sg-home-slider__media--video iframe {
  pointer-events: auto;
  width: min(1100px, 92%);
  height: min(560px, 78%);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.sg-home-slider__media--bg-video iframe {
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
}

.sg-home-slider__overlay {
  position: absolute;
  inset: 0;
  background: #04111f;
  z-index: 3;
  pointer-events: none;
}

.sg-home-slider__content {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  padding: clamp(24px, 4vw, 56px);
  pointer-events: none;
}

.sg-home-slider__content-inner {
  max-width: min(640px, 92%);
  pointer-events: auto;
}

.sg-home-slider__content--center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.sg-home-slider__content--center .sg-home-slider__content-inner {
  margin: 0 auto;
}

.sg-home-slider__content--left {
  align-items: center;
  justify-content: flex-start;
  text-align: left;
}

.sg-home-slider__content--right {
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

.sg-home-slider__content--bottom-left {
  align-items: flex-end;
  justify-content: flex-start;
  text-align: left;
}

.sg-home-slider__content--bottom-right {
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
}

.sg-home-slider__badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sg-home-slider__headline {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.sg-home-slider__text {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.sg-home-slider__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
}

.sg-home-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.sg-home-slider__nav:hover,
.sg-home-slider__nav:focus {
  background: rgba(255, 255, 255, 0.28);
  outline: none;
}

.sg-home-slider__nav--prev { left: 14px; }
.sg-home-slider__nav--next { right: 14px; }

.sg-home-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.sg-home-slider__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

.sg-home-slider__dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 767px) {
  .sg-home-slider {
    height: var(--sg-slider-h-mobile);
  }

  .sg-home-slider__nav {
    width: 36px;
    height: 36px;
  }

  .sg-home-slider__nav--prev { left: 8px; }
  .sg-home-slider__nav--next { right: 8px; }

  .sg-home-slider__slide--video .sg-home-slider__media--video iframe {
    width: 94%;
    height: 54%;
  }
}
