/* ==========================================================================
   SUNSHINE MAKEUP STUDIO - LUXURY HERO BANNER SLIDER
   Smooth Auto-Slide, Pointer / Touch Drag & Responsive Desktop/Mobile Scaling
   ========================================================================== */

:root {
  --hero-slider-burgundy: #741D2D;
  --hero-slider-burgundy-dark: #4F1233;
  --hero-slider-gold: #D4904C;
  --hero-slider-rose-gold: #BA1B4D;
  --hero-slider-dot-bg: rgba(255, 255, 255, 0.45);
  --hero-slider-arrow-bg: rgba(255, 255, 255, 0.90);
  --hero-slider-arrow-border: rgba(255, 255, 255, 0.95);
  --hero-slider-arrow-color: #741D2D;
  --hero-slider-transition-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* 1. Main Hero Slider Section */
.sunshine-hero-slider-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: #260A13; /* Deep burgundy match */
  margin: 0;
  padding: 0;
  z-index: 1;
}

/* 2. Slider Container */
.sunshine-hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}

.sunshine-hero-slider.is-dragging {
  cursor: grabbing !important;
}

/* 3. Slider Track */
.hero-slider-track {
  display: flex;
  width: 100%;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 0.55s var(--hero-slider-transition-ease);
}

.hero-slider-track.no-transition {
  transition: none !important;
}

/* 4. Slide Element */
.hero-slider-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
}

.hero-slide-link {
  display: block;
  width: 100%;
  text-decoration: none;
  outline: none;
  cursor: inherit;
}

/* 5. Responsive Banner Images - Same image on Desktop and Mobile */
.hero-slide-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1980 / 795;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none; /* Prevents browser ghost-drag so pointer events track smoothly */
  transition: transform 0.4s ease;
}

/* 6. Luxury Navigation Arrows */
.hero-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--hero-slider-arrow-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid var(--hero-slider-arrow-border);
  color: var(--hero-slider-arrow-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  z-index: 8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(116, 29, 45, 0.18);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0;
  outline: none;
}

.hero-slider-prev {
  left: 28px;
}

.hero-slider-next {
  right: 28px;
}

.hero-slider-arrow:hover {
  background: var(--hero-slider-burgundy);
  color: #FFFFFF;
  border-color: var(--hero-slider-burgundy);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 12px 30px rgba(116, 29, 45, 0.45);
}

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

.hero-slider-arrow i {
  display: inline-block;
  pointer-events: none;
  transition: transform 0.2s ease;
}

.hero-slider-prev:hover i {
  transform: translateX(-2px);
}

.hero-slider-next:hover i {
  transform: translateX(2px);
}

/* 7. Elegant Pagination Dots */
.hero-slider-dots-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 85px; /* Sits nicely above the -65px overlapping promo card */
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slider-dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(18, 5, 9, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--hero-slider-dot-bg);
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.85);
  transform: scale(1.25);
}

.hero-dot.active {
  width: 32px;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #BA1B4D 0%, #D4904C 100%);
  box-shadow: 0 0 12px rgba(186, 27, 77, 0.65);
}

/* 8. Slide Autoplay Progress Line */
.hero-slider-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 7;
  overflow: hidden;
}

.hero-slider-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #BA1B4D, #D4904C);
  transition: width 0.1s linear;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (Desktop & Mobile)
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1199.98px) */
@media (max-width: 1199.98px) {
  .hero-slider-prev {
    left: 18px;
  }
  .hero-slider-next {
    right: 18px;
  }
  .hero-slider-arrow {
    width: 46px;
    height: 46px;
    font-size: 16px;
  }
  .hero-slider-dots-wrapper {
    bottom: 78px;
  }
}

/* Medium Tablets (<= 991.98px) */
@media (max-width: 991.98px) {
  .hero-slider-arrow {
    width: 42px;
    height: 42px;
    font-size: 15px;
  }
  .hero-slider-prev {
    left: 14px;
  }
  .hero-slider-next {
    right: 14px;
  }
  .hero-slider-dots-wrapper {
    bottom: 65px;
  }
  .hero-slider-dots {
    padding: 6px 14px;
    gap: 8px;
  }
  .hero-dot {
    width: 8px;
    height: 8px;
  }
  .hero-dot.active {
    width: 24px;
    height: 8px;
  }
}

/* Portrait Tablets & Small Screens (<= 767.98px) */
@media (max-width: 767.98px) {
  .hero-slider-arrow {
    width: 36px;
    height: 36px;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.85);
  }
  .hero-slider-prev {
    left: 10px;
  }
  .hero-slider-next {
    right: 10px;
  }
  .hero-slider-dots-wrapper {
    bottom: 50px;
  }
  .hero-slider-dots {
    padding: 5px 12px;
    gap: 7px;
  }
  .hero-dot {
    width: 7px;
    height: 7px;
  }
  .hero-dot.active {
    width: 20px;
    height: 7px;
  }
}

/* Mobile Devices (<= 575.98px) */
@media (max-width: 575.98px) {
  .hero-slider-arrow {
    width: 30px;
    height: 30px;
    font-size: 11px;
    left: 6px;
  }
  .hero-slider-next {
    right: 6px;
  }
  .hero-slider-dots-wrapper {
    bottom: 35px; /* Above the -25px mobile promo form overlap */
  }
  .hero-slider-dots {
    padding: 4px 10px;
    gap: 6px;
  }
  .hero-dot {
    width: 6px;
    height: 6px;
  }
  .hero-dot.active {
    width: 16px;
    height: 6px;
  }
  .hero-slider-progress {
    height: 2px;
  }
}

/* Extra Small Mobiles (<= 400px) */
@media (max-width: 400px) {
  .hero-slider-arrow {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .hero-slider-dots-wrapper {
    bottom: 30px;
  }
}
