/* Flexi Image Slider Styles */

.flexi-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: none;
  cursor: pointer;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding-bottom: 36px; /* room for dots below marquee */
}

.slider-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
  width: 100%;
  /* min-height: inherit; */
}

.slider-slide {
  flex: 0 0 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* padding: 40px; */
  /* min-height: var(--slider-height, auto); */
  background: none;
  width: 100%;
  aspect-ratio: 3.2;
}

/* Full-width, non-stretched slide image as an <img> layer */
.slider-slide .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

/* Navigation Arrows - Matching the image style */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px !important;
  height: 50px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(5.7px) !important;
  border: 1px solid #ffffff4d !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease !important;
  z-index: 10 !important;
  padding: 0 !important;
}

/* Hide arrows when they should be hidden (for JavaScript control) */
.slider-arrows-hidden {
  display: none !important;
}

/* Hide dots when they should be hidden (for JavaScript control) */
.slider-dots-hidden {
  display: none !important;
}

/* .slider-arrow:hover {
    background: rgba(139, 92, 246, 1);
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
} */

.slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.slider-prev {
  left: 20px;
}

.slider-next {
  right: 20px;
}

.slider-arrow svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pagination Dots – sit below the marquee strip via relative flow */
.slider-dots {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #d0d0d0;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  padding: 0 !important;
}

.slider-dot:hover {
  background: #a0a0a0;
  transform: scale(1.1);
}

.slider-dot.active {
  width: auto;
  height: auto;
  min-width: 45px;
  padding: 6px 12px !important;
  border-radius: 20px;
  background: #2d2d2d;
  color: white;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  transform: scale(1);
}

/* =============================================
   Flexi Marquee Banner
   ============================================= */
.flexi-marquee {
  width: 100%;
  overflow: hidden;
  background: var(--mq-bg, #1a1a1a);
  color: var(--mq-color, #ffffff);
  font-size: var(--mq-fs, 13px);
  line-height: 1;
  /* sits directly below the slider image */
  position: relative;
  z-index: 5;
  /* margin removed – spacing comes from padding-bottom on .slider-container */
}

.flexi-marquee__track {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  /* animation duration driven by CSS var, linear & infinite */
  animation: flexi-marquee-scroll var(--mq-speed, 25s) linear infinite;
  will-change: transform;
}

/* Pause the scroll when hovering the strip */
.flexi-marquee:hover .flexi-marquee__track {
  animation-play-state: paused;
}

@keyframes flexi-marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.flexi-marquee__item {
  padding: 10px 20px;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.flexi-marquee__sep {
  display: inline-block;
  margin: 0 4px;
  opacity: 0.55;
  font-size: 0.7em;
  vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 768px) {
  .slider-slide {
    flex-direction: column;
    padding: 20px;
    text-align: center;
    min-height: 250px;
    aspect-ratio: 2/1;
  }

  .slide-content {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .slide-title {
    font-size: 1.8rem;
  }

  .slide-subtitle {
    font-size: 1rem;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slider-arrow svg {
    width: 20px;
    height: 20px;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-next {
    right: 10px;
  }

  /* .slider-dots {
        bottom: 15px;
        gap: 8px;
    } */

  .slider-dot {
    width: 10px;
    height: 10px;
  }

  .slide-product {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 20px;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .slider-slide {
    padding: 15px;
    min-height: 390px;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .slide-subtitle {
    font-size: 0.9rem;
  }

  .slide-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .slider-arrow {
    width: 35px;
    height: 35px;
  }

  .slider-arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* Animation Classes */
.slider-slide.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading State */

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Accessibility */
.slider-arrow:focus,
.slider-dot:focus {
  outline: 2px solid #fcd34d;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .slider-arrow {
    background: rgba(139, 92, 246, 1);
    border: 2px solid white;
  }

  .slider-dot {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid white;
  }

  .slider-dot.active {
    background: white;
    border: 2px solid #000;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .slider-wrapper {
    transition: none;
  }

  .slider-arrow:hover,
  .slider-dot:hover {
    transform: none;
  }

  .slide-button:hover {
    transform: none;
  }
}
.flexi-marquee img {
    width: 20px;
    height: 20px;
}