/* DIESEL GARAGE - Multi-Animation Video Slider */

.banner-wrap.home-banner {
  position: relative;
  width: 100%;
  max-width: 1296px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #05070a;
}

.dg-video-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1184 / 608;
  max-height: 640px;
  min-height: 320px;
  background: #05070a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.dg-slides-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out;
  z-index: 1;
}

.dg-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 3;
}
.dg-slide.is-prev {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.dg-slide-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #05070a;
}

/* Floating Slide Pill Badge */
.dg-slide-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(13, 17, 23, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(113, 158, 55, 0.4);
  color: #719e37;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 5;
  pointer-events: none;
}

/* Navigation Arrows */
.dg-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13, 17, 23, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: all 0.2s ease;
  user-select: none;
}

.dg-slider-nav:hover {
  background: rgba(113, 158, 55, 0.9);
  border-color: #719e37;
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}

.dg-slider-prev { left: 16px; }
.dg-slider-next { right: 16px; }

/* Bottom Timeline Slider Controls */
.dg-video-slider-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px 14px;
  background: linear-gradient(180deg, rgba(5, 7, 10, 0) 0%, rgba(5, 7, 10, 0.85) 60%, rgba(5, 7, 10, 0.95) 100%);
  z-index: 6;
}

.dg-slider-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.dg-slide-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.dg-slide-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.dg-slide-tab.is-active {
  background: rgba(113, 158, 55, 0.15);
  border-color: rgba(113, 158, 55, 0.6);
  box-shadow: 0 4px 16px rgba(113, 158, 55, 0.2);
}

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tab-icon {
  font-size: 14px;
}

.tab-num {
  font-size: 10px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.05em;
}

.dg-slide-tab.is-active .tab-num {
  color: #719e37;
}

.tab-title {
  font-size: 12px;
  font-weight: 600;
  color: #e6edf3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dg-slide-tab.is-active .tab-title {
  color: #fff;
  font-weight: 700;
}

.tab-progress {
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.tab-progress-fill {
  width: 0%;
  height: 100%;
  background: #719e37;
  border-radius: 2px;
  transition: width 0.1s linear;
}

.dg-slide-tab.is-active .tab-progress-fill {
  background: linear-gradient(90deg, #719e37, #59c70b);
  box-shadow: 0 0 8px rgba(89, 199, 11, 0.6);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .dg-video-slider {
    aspect-ratio: 16 / 9;
    min-height: 220px;
  }
  .dg-slide-badge {
    top: 10px;
    left: 12px;
    padding: 4px 10px;
    font-size: 9px;
  }
  .dg-slider-nav {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
  .dg-slider-prev { left: 8px; }
  .dg-slider-next { right: 8px; }
  .dg-slider-tabs {
    gap: 6px;
  }
  .dg-slide-tab {
    padding: 6px 8px;
  }
  .tab-title {
    font-size: 10px;
  }
  .tab-num {
    display: none;
  }
}

/* === DG MOBILE HERO SLIDER FIX 2026 === */
@media (max-width: 768px) {
  .dg-video-slider,
  body.shop-vitrine.shop-classic-home .home-banner.banner-wrap .dg-video-slider,
  body.shop-vitrine.shop-classic-home .banner-wrap.home-banner .dg-video-slider {
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    width: 100% !important;
    border-radius: 10px !important;
    background: #0d1015 !important;
  }

  .dg-video-slider .dg-slides-wrapper,
  .dg-video-slider .dg-slide {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
  }

  .dg-video-slider .dg-slide-video,
  body.shop-vitrine.shop-classic-home .home-banner.banner-wrap video.dg-slide-video,
  body.shop-vitrine.shop-classic-home .banner-wrap.home-banner video.dg-slide-video {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
  }

  .dg-slider-arrow {
    width: 32px !important;
    height: 32px !important;
  }
  .dg-slider-prev {
    left: 8px !important;
  }
  .dg-slider-next {
    right: 8px !important;
  }
  .dg-slider-arrow svg {
    width: 15px !important;
    height: 15px !important;
  }

  .dg-slide-badge {
    bottom: 10px !important;
    left: 10px !important;
    padding: 4px 10px !important;
    font-size: 9.5px !important;
    gap: 6px !important;
  }

  .dg-slider-dots {
    bottom: 10px !important;
    right: 10px !important;
    padding: 4px 8px !important;
    gap: 5px !important;
  }
}
