.hpr-carousel {
  --hpr-accent: #ff6b00;
  --hpr-text: #202124;
  --hpr-muted: #667085;
  --hpr-border: #e3e6ea;
  --hpr-card-bg: #fff;
  --hpr-star-off: #d9dde2;
  width: 100%;
  max-width: 1240px;
  margin: 2rem auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.hpr-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hpr-title {
  margin: 0;
  color: var(--hpr-text);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.hpr-controls {
  display: flex;
  gap: .5rem;
  flex: 0 0 auto;
}

.hpr-arrow {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--hpr-border);
  border-radius: 50%;
  background: #fff;
  color: var(--hpr-text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}

.hpr-arrow:hover,
.hpr-arrow:focus-visible {
  border-color: var(--hpr-accent);
  color: var(--hpr-accent);
  transform: translateY(-1px);
  outline: none;
}

.hpr-arrow[hidden] {
  display: none;
}

.hpr-viewport {
  overflow: hidden;
}

.hpr-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2rem) / 3);
  gap: 1rem;
  overflow-x: auto;
  padding: .2rem .1rem 1rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.hpr-track::-webkit-scrollbar {
  display: none;
}

.hpr-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 290px;
  padding: 1.25rem;
  border: 1px solid var(--hpr-border);
  border-radius: 12px;
  background: var(--hpr-card-bg);
  box-shadow: 0 4px 18px rgba(15, 23, 42, .06);
  scroll-snap-align: start;
  box-sizing: border-box;
}

.hpr-card-top,
.hpr-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.hpr-stars {
  display: inline-flex;
  gap: .05rem;
  line-height: 1;
}

.hpr-star {
  color: var(--hpr-star-off);
  font-size: 1.3rem;
}

.hpr-star.is-active {
  color: #ffc23d;
}

.hpr-score,
.hpr-date {
  color: var(--hpr-muted);
  font-size: .82rem;
}

.hpr-review-title {
  margin: 1rem 0 .45rem;
  color: var(--hpr-text);
  font-size: 1rem;
  line-height: 1.35;
}

.hpr-review-text {
  margin: 0 0 1rem;
  color: var(--hpr-text);
  font-size: .96rem;
  line-height: 1.55;
}

.hpr-author-row {
  margin-top: auto;
  padding-top: .25rem;
}

.hpr-author {
  overflow: hidden;
  color: var(--hpr-text);
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hpr-product {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--hpr-border);
  color: var(--hpr-text);
  text-decoration: none;
}

.hpr-product:hover strong {
  color: var(--hpr-accent);
}

.hpr-product-image {
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.hpr-product span {
  min-width: 0;
}

.hpr-product small,
.hpr-product strong {
  display: block;
}

.hpr-product small {
  margin-bottom: .2rem;
  color: var(--hpr-muted);
  font-size: .72rem;
}

.hpr-product strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: .86rem;
  line-height: 1.35;
  transition: color .2s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (max-width: 991px) {
  .hpr-track {
    grid-auto-columns: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 640px) {
  .hpr-carousel {
    margin: 1.5rem auto;
    padding: 0 .75rem;
  }

  .hpr-track {
    grid-auto-columns: 88%;
  }

  .hpr-card {
    min-height: 275px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hpr-track,
  .hpr-arrow {
    scroll-behavior: auto;
    transition: none;
  }
}
