﻿/*
 * Matchwell Engineering — Product Slider & Marquee
 * product-slider.css | astra-matchwell child theme
 */

/* ─────────────────────────────────────────────────────────────────
   SECTION CONTAINER OVERRIDES
───────────────────────────────────────────────────────────────── */
.elementor-element-d2ad8f0.elementor-section {
  padding: 0 !important;
  position: relative !important;
}

/* Hide original RevSlider */
.elementor-element-d2ad8f0 .elementor-widget-slider_revolution {
  display: none !important;
}

.mw-product-slider-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ─────────────────────────────────────────────────────────────────
   HERO PRODUCT SLIDER
───────────────────────────────────────────────────────────────── */
.mw-product-slider {
  width: 100%;
  height: clamp(400px, 45vw, 650px);
  position: relative;
  overflow: hidden;
  background: #1E293B;
}

.mw-pslides {
  width: 100%;
  height: 100%;
  position: relative;
}

.mw-pslide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 800ms ease, visibility 800ms ease;
  z-index: 1;
}

.mw-pslide.mw-pslide--active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Navigation Controls Overlay */
.mw-pcontrols {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(13, 31, 60, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 24px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mw-pnav {
  background: none;
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 150ms ease, transform 150ms ease;
}

.mw-pnav:hover {
  opacity: 1;
  transform: scale(1.1);
}

.mw-pnav svg {
  width: 22px;
  height: 22px;
}

.mw-pdots {
  display: flex;
  gap: 12px;
}

.mw-pdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 250ms ease, transform 250ms ease;
}

.mw-pdot:hover {
  background: rgba(255, 255, 255, 0.6);
}

.mw-pdot.mw-pdot--active {
  background: #FFFFFF;
  transform: scale(1.3);
}

/* ─────────────────────────────────────────────────────────────────
   CONTINUOUS MARQUEE STRIP
───────────────────────────────────────────────────────────────── */
.mw-product-marquee-strip {
  width: 100%;
  background: #095DAC;
  color: #FFFFFF;
  padding: 16px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.mw-product-marquee-track {
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.mw-product-marquee-content {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding-left: 20px;
  animation: mwProductScroll 40s linear infinite;
}

.mw-product-marquee-track:hover .mw-product-marquee-content {
  animation-play-state: paused;
}

@keyframes mwProductScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.3333%); }
}

@media (prefers-reduced-motion: reduce) {
  .mw-product-marquee-content {
    animation: none !important;
  }
}