/* Product slider: horizontal scroll-snap row with arrow buttons */
.cb-product-slider {
  position: relative;
  container-type: inline-size;
  min-width: 0;
  margin-bottom: 96px;
}

.cb-product-slider .cb-product-slider__track {
  display: flex;
  gap: 24px;
  padding: 0 0 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.cb-product-slider .cb-product-slider__track::-webkit-scrollbar {
  display: none;
}

.cb-product-slider .cb-product-slider__track:focus-visible {
  outline: 2px solid var(--binder-red, #e60000);
  outline-offset: 2px;
}

.cb-product-slider .cb-product-slider__slide {
  display: flex;
  flex: 0 0 calc((100% - 48px) / 3);
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  scroll-snap-align: start;
  background: var(--binder-white, #fff);
  border: 1px solid var(--binder-gray, #d8d8dd);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
  .cb-product-slider .cb-product-slider__slide:hover {
    border-color: var(--binder-gray-medium, #b8b8c0);
  }
}

.cb-product-slider .cb-product-slider__image {
  padding: 20px 20px 0;
}

.cb-product-slider .cb-product-slider__image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.cb-product-slider .cb-product-slider__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 24px;
}

.cb-product-slider .cb-product-slider__title {
  min-height: 2.6em;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  font-size: 1.125rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--binder-graphite, #252527);
  text-align: left;
  hyphens: manual;
  overflow-wrap: normal;
}

.cb-product-slider .cb-product-slider__text {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--binder-gray-graphite-light, #5a5a5f);
  hyphens: manual;
  text-wrap: pretty;
}

.cb-product-slider .cb-product-slider__cta {
  margin: auto 0 0;
}

.cb-product-slider .cb-product-slider__cta .btn {
  width: 100%;
  white-space: nowrap;
}

.cb-product-slider .cb-product-slider__nav {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 16px;
}

.cb-product-slider .cb-product-slider__nav[hidden] {
  display: none;
}

.cb-product-slider .cb-product-slider__nav button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--binder-gray-medium, #b8b8c0);
  background: var(--binder-white, #fff);
  color: var(--binder-graphite, #252527);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cb-product-slider .cb-product-slider__nav button:hover:not(:disabled) {
  background: var(--binder-red, #e60000);
  border-color: var(--binder-red, #e60000);
  color: var(--binder-white, #fff);
}

.cb-product-slider .cb-product-slider__nav button:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Cards per view follow the width of the column, not of the window */
@container (max-width: 42em) {
  .cb-product-slider .cb-product-slider__slide {
    flex-basis: calc((100% - 24px) / 2);
  }
}

@container (max-width: 26em) {
  .cb-product-slider .cb-product-slider__slide {
    flex-basis: 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cb-product-slider .cb-product-slider__track {
    scroll-behavior: auto;
  }
}
