/* ==========================================================================
   mm-auto-carousel.css — MarineMax Unified Auto-Scroll Carousel Styles
   ========================================================================== */

.mm-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.mm-carousel__viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  -webkit-overflow-scrolling: touch;
}

.mm-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.mm-carousel__track {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0.5rem 0.25rem 1.5rem;
  list-style: none;
  transition: transform 0.4s ease;
}

.mm-carousel__slide {
  flex: 0 0 calc(25% - 1.125rem); /* 4 cards visible on desktop */
  min-width: 260px;
  max-width: 320px;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .mm-carousel__slide {
    flex: 0 0 calc(33.333% - 1rem); /* 3 cards on tablet */
    min-width: 240px;
  }
}

@media (max-width: 768px) {
  .mm-carousel__slide {
    flex: 0 0 calc(50% - 0.75rem); /* 2 cards on mobile */
    min-width: 210px;
  }
}

@media (max-width: 480px) {
  .mm-carousel__slide {
    flex: 0 0 calc(85% - 0.5rem); /* 1.2 cards on small phone */
    min-width: 220px;
  }
}

/* Nav Arrows */
.mm-carousel__nav {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mm-carousel__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d2d5d8;
  color: #121212;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.2s ease;
}

.mm-carousel__btn:hover:not(:disabled) {
  background: var(--mm-accent, #e82012);
  border-color: var(--mm-accent, #e82012);
  color: #ffffff;
  transform: translateY(-1px);
}

.mm-carousel__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mm-carousel__btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Progress bar */
.mm-carousel__progress {
  width: 100%;
  height: 3px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.mm-carousel__progress-bar {
  height: 100%;
  background: var(--mm-accent, #e82012);
  width: 25%;
  transition: width 0.3s ease, transform 0.3s ease;
}

/* Drone cards live in /theme/mm-drones.css */
