.random-category-spotlight {
  margin-top: 2rem;
  width: 100%;
  display: block;
  position: relative;
}

.random-category-spotlight__category {
  position: relative;
  overflow: hidden;
  border-radius: 0.35rem;
  min-height: 360px;
  width: 100%;
  display: block;
  color: #fff;
}

.random-category-spotlight__category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.random-category-spotlight__category::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.65) 100%);
}

.random-category-spotlight__category:hover img {
  transform: scale(1.05);
}
.random-category-spotlight .product-miniature,
.random-category-spotlight .product-miniature .thumbnail-container {
  position: relative;
}

.random-category-spotlight .wishlist-button-add {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 12;
}

.random-category-spotlight__category-info {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  z-index: 1;
  color: #fff;
}

.random-category-spotlight__category-info h3 {
  margin: 0;
  padding-top: 0.25rem;
  font-size: 1.75rem;
  color: #fff;
}

.random-category-spotlight__category-info p {
  margin-bottom: 0.75rem;
  max-width: 420px;
  color: #fff;
}

.random-category-spotlight__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

.random-category-spotlight__products {
  margin-top: 1.5rem;
  position: relative;
  min-height: var(--spotlight-height, auto);
}

.random-category-spotlight__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 0;
  min-height: inherit;
}

.random-category-spotlight__viewport::-webkit-scrollbar {
  display: none;
}

.random-category-spotlight__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-left: calc(var(--bs-gutter-x, 1.5rem) / -2);
  margin-right: calc(var(--bs-gutter-x, 1.5rem) / -2);
}

.random-category-spotlight__product {
  flex: 0 0 auto;
  padding-left: calc(var(--bs-gutter-x, 1.5rem) / 2);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) / 2);
}

.random-category-spotlight__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.random-category-spotlight__nav:hover {
  background: rgba(0, 0, 0, 0.85);
}

.random-category-spotlight__nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.random-category-spotlight__nav--prev {
  left: -0.75rem;
}

.random-category-spotlight__nav--next {
  right: -0.75rem;
}

.random-category-spotlight--inline {
  margin-top: 0;
}

.pb-rcs-inline {
  margin-top: 1.5rem;
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  display: block;
  padding-left: calc(var(--bs-gutter-x, 1.5rem) / 2);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) / 2);
}

.pb-rcs-inline--hidden {
  display: none;
}

#js-product-list .products .js-product.pb-rcs-inline,
.products .js-product.pb-rcs-inline {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  min-width: 100% !important;
  display: block !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.pb-rcs-inline .random-category-spotlight {
  width: 100%;
  margin-top: 0;
}

.random-category-spotlight::before {
  content: '';
  position: absolute;
  inset: -0.75rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.65) 100%);
  border-radius: 0.5rem;
  z-index: 0;
}

.random-category-spotlight > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 991px) {
  .random-category-spotlight__category {
    min-height: 300px;
  }
}

@media (max-width: 575px) {
  .random-category-spotlight__category {
    min-height: 260px;
  }

  .random-category-spotlight__nav--prev {
    left: 0.25rem;
  }

  .random-category-spotlight__nav--next {
    right: 0.25rem;
  }
}

@media (max-width: 768px) {
  .random-category-spotlight__viewport {
    padding: 0.25rem 0;
  }

  .random-category-spotlight__nav {
    width: 36px;
    height: 36px;
  }
}
