.rayou-hot-products {
  padding: 48px 24px 54px;
  background: #fff;
}

.rayou-hot-products-inner {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
}

.rayou-hot-products-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.rayou-hot-products-heading > div:first-child > span {
  color: #d99500;
  font-size: 12px;
  font-weight: 700;
}

.rayou-hot-products-heading h2 {
  margin: 6px 0 0;
  color: #2f3644;
  font-size: 30px;
  font-weight: 600;
}

.rayou-hot-products-controls {
  display: flex;
  gap: 8px;
}

.rayou-hot-products-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0 0 4px;
  border: 1px solid #d8dde1;
  border-radius: 50%;
  background: #fff;
  color: #2f3644;
  font: inherit;
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}

.rayou-hot-products-controls button:hover,
.rayou-hot-products-controls button:focus-visible {
  border-color: #efa400;
  background: #efa400;
  color: #fff;
}

.rayou-hot-products-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}

.rayou-hot-products-viewport::-webkit-scrollbar {
  display: none;
}

.rayou-hot-products-track {
  display: flex;
  gap: 20px;
}

.rayou-hot-product {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}

.rayou-hot-product-image {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  aspect-ratio: 1080 / 1242;
  background: #f7f7f7;
  cursor: zoom-in;
}

.rayou-hot-product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rayou-hot-product h3 {
  margin: 13px 0 0;
  color: #2f3644;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
}

.rayou-hot-image-dialog {
  width: min(96vw, 1500px);
  max-width: none;
  max-height: 96vh;
  box-sizing: border-box;
  padding: 52px 16px 16px;
  border: 0;
  background: #202020;
  overflow: visible;
}

.rayou-hot-image-dialog::backdrop {
  background: rgb(0 0 0 / 86%);
}

.rayou-hot-image-dialog img {
  display: block;
  width: 100%;
  height: calc(96vh - 68px);
  object-fit: contain;
}

.rayou-hot-image-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 50%;
  background: #333;
  color: #fff;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.rayou-hot-image-close:hover,
.rayou-hot-image-close:focus-visible {
  background: #efa400;
}

@media (max-width: 767px) {
  .rayou-hot-products {
    padding: 40px 16px 44px;
  }

  .rayou-hot-products-heading h2 {
    font-size: 25px;
  }

  .rayou-hot-products-track {
    gap: 12px;
  }

  .rayou-hot-product {
    flex-basis: calc((100% - 12px) / 2);
  }

  .rayou-hot-product h3 {
    margin-top: 9px;
    font-size: 15px;
  }

  .rayou-hot-image-dialog {
    width: 100vw;
    max-height: 100dvh;
    padding: 52px 8px 8px;
  }

  .rayou-hot-image-dialog img {
    height: calc(100dvh - 68px);
  }

  .rayou-hot-products-controls button {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .rayou-hot-product {
    flex-basis: 82%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rayou-hot-products-viewport {
    scroll-behavior: auto;
  }
}
