.top-rated-products {
  padding-top: var(--site-space-80);
  padding-bottom: var(--site-space-160);
}

.top-rated-products__intro {
  display: grid;
  justify-items: center;
  gap: var(--site-space-20);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--site-space-80);
  text-align: center;
}

.top-rated-products__heading-wrap {
  display: grid;
  gap: var(--site-space-10);
}

.top-rated-products__label {
  font-size: var(--site-font-size-xs);
}

.top-rated-products__label,
.top-rated-products__card-eyebrow {
  color: var(--Primary-Rust);
  font-family: var(--font-satoshi);

  font-style: normal;
  font-weight: 700;
  line-height: 1.71;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.top-rated-products__title {
  color: var(--Text-Dark);
  text-align: center;
  font-family: var(--font-satoshi);
  font-size: var(--site-font-size-46);
  font-style: normal;
  font-weight: 500;
  line-height: 1.173;
  letter-spacing: -0.46px;
}

.top-rated-products__description {
  color: var(--Subtext);
  font-family: var(--font-space-grotesk, "Space Grotesk", sans-serif);
  font-size: var(--site-font-size-base);
  font-style: normal;
  font-weight: 400;
  line-height: 133.333%;
  max-width: 670px;
}

.top-rated-products__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--site-space-20);
}

.top-rated-products__card {
  overflow: hidden;
  border-radius: var(--site-radius-content);
  background-color: var(--Card-BG);
  padding: var(--site-space-20);
  border: 1px solid var(--Card-Border);
}

.top-rated-products__card:hover .top-rated-products__card-image-wrap {
  background-color: var(--Primary-Rust);
  transition: all 0.4s;
}

.top-rated-products__card-image-wrap {
  aspect-ratio: 360 / 441;
  overflow: hidden;
  border-radius: 8px;
  transition: all 0.4s;
  background: var(--Light-BG);
}

.top-rated-products__card-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.top-rated-products__card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-rated-products__card-content {
  padding: var(--site-space-20) 0px 0px;
}

.top-rated-products__card-eyebrow {
  margin-bottom: var(--site-space-15);
  font-size: 22px;
  line-height: 136.364%;
}

.top-rated-products__card-title {
  color: var(--Text-Dark);
  font-family: var(--font-satoshi);
  font-size: var(--site-font-size-2xl);
  font-weight: 700;
  line-height: 126.667%;
  margin-bottom: var(--site-space-20);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-rated-products__card-description {
  color: var(--Subtext);
  font-family: var(--font-space-grotesk, "Space Grotesk", sans-serif);
  font-size: var(--site-font-size-sm);
  line-height: 1.5;
}

.top-rated-products__card-link {
  display: inline-flex;
  color: var(--Primary-Rust);
  font-family: var(--font-satoshi);
  font-size: var(--site-font-size-base);
  font-weight: 500;
  letter-spacing: -0.18px;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: 2px;
}

.top-rated-products__action {
  display: flex;
  justify-content: center;
  margin-top: var(--site-space-80);
}

@media (max-width: 1024px) {
  .top-rated-products__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .top-rated-products {
    padding-top: var(--site-space-60);
    padding-bottom: var(--site-space-50);
  }

  .top-rated-products__intro {
    margin-bottom: var(--site-space-50);
  }

  .top-rated-products__title {
    font-size: var(--site-font-size-32);
  }

  .top-rated-products__description {
    font-size: var(--site-font-size-sm);
  }

  .top-rated-products__cards {
    display: flex;
    gap: var(--site-space-20);
    width: calc(100vw - 36px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .top-rated-products__cards::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .top-rated-products__card {
    flex: 0 0 min(322px, calc(100vw - 76px));
    scroll-snap-align: start;
  }

  .top-rated-products__card-image-wrap {
    aspect-ratio: 322 / 441;
  }

  .top-rated-products {
    position: relative;
  }

  .top-rated-products:before {
    content: "";
    position: absolute;
    top: 0px;
    width: calc(100% - 36px);
    height: 1px;
    background: #e2d8d2;
    margin: auto;
    left: 0;
    right: 0px;
  }

  .top-rated-products__card-content {
    text-align: center;
  }

  .top-rated-products__card-title {
    font-size: var(--site-font-size-1xl);
    margin-bottom: var(--site-space-10);
  }

  .top-rated-products__action {
    margin-top: var(--site-space-50);
  }

  .top-rated-products__controls {
    display: flex;
    justify-content: center;
    gap: var(--site-space-12, 12px);
    margin-top: var(--site-space-24, 24px);
  }

  .top-rated-products__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--Border-Color, #e2d8d2);
    border-radius: var(--site-radius-round, 50%);
    background-color: var(--Card-BG, #ffffff);
    color: var(--Primary-Rust, #955431);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .top-rated-products__control span {
    display: flex;
    align-items: center;
  }

  .top-rated-products__control:hover {
    background-color: var(--Primary-Rust, #955431);
    color: #ffffff;
  }

  .top-rated-products__control:hover svg path {
    stroke: #ffffff;
  }
}

@media (min-width: 769px) {
  .top-rated-products__controls.for-mobile {
    display: none;
  }
}