/* Card Slider 2 (simple)
   Uses existing .nb-card styles from assets/css/woocommerce.css */

.nb-card-slider2 {
  position: relative;
  padding: 42px 0;
  overflow: visible;
}

.nb-card-slider2__inner {
  width: 90%;
  max-width: 1920px;
  margin: 0 auto;
}

.nb-card-slider2__viewport {
  position: relative;
  overflow: visible;
}

.nb-card-slider2__track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nb-card-slider2__track::-webkit-scrollbar {
  display: none;
}

.nb-card-slider2__track.is-draggable {
  cursor: grab;
}
.nb-card-slider2__track.is-dragging {
  cursor: grabbing;
}

.nb-card-slider2__track > .nb-card,
.nb-card-slider2__track > .nb-cat-slider__item {
  flex: 0 0 360px;
  width: 360px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

/* Child-category render mode: make the card fill the "cell" */
.nb-card-slider2__track > .nb-cat-slider__item > a,
.nb-card-slider2__track > .nb-cat-slider__item > .socksy-category-card {
  width: 100%;
}
.nb-card-slider2__track .socksy-category-card {
  width: 100% !important;
}

.nb-card-slider2__controls {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nb-card-slider2__dots {
  display: inline-flex;
  gap: 8px;
}

.nb-card-slider2__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid #bbb;
  background: #bbb;
  padding: 0;
  cursor: pointer;
}

.nb-card-slider2__dot.is-active {
  background: #000;
  border-color: #000;
}

.nb-card-slider2__arrows {
  display: inline-flex;
  gap: 16px;
}

.nb-card-slider2__nav {
  border: 1px solid #000;
  color: #fff;
  background: #000;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}

.nb-card-slider2__nav:hover {
  background: var(--darkBlue, #0b3a4f);
  border-color: var(--darkBlue, #0b3a4f);
}

@media (max-width: 1200px) {
  .nb-card-slider2 {
    padding: 32px 0;
  }
  .nb-card-slider2__track > .nb-card,
  .nb-card-slider2__track > .nb-cat-slider__item {
    flex: 0 0 340px;
    width: 340px;
  }
}

@media (max-width: 900px) {
  .nb-card-slider2 {
    padding: 26px 0;
  }
  .nb-card-slider2__track > .nb-card,
  .nb-card-slider2__track > .nb-cat-slider__item {
    flex: 0 0 320px;
    width: 320px;
  }
}

@media (max-width: 520px) {
  .nb-card-slider2 {
    padding: 22px 0;
  }
  .nb-card-slider2__track {
    /* Center active card on small screens */
    padding-left: calc(50% - 140px);
    padding-right: calc(50% - 140px);
  }
  .nb-card-slider2__track > .nb-card,
  .nb-card-slider2__track > .nb-cat-slider__item {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: center;
  }
  .nb-card-slider2__controls {
    margin-top: 18px;
  }
  .nb-card-slider2__dot {
    width: 8px;
    height: 8px;
  }
  .nb-card-slider2__arrows {
    gap: 10px;
  }
  .nb-card-slider2__nav {
    width: 36px;
    height: 36px;
  }
}
