/* ===== Collection carousel ===== */
.mhp-carousel {
  margin: 28px 0 16px;
}
.mhp-carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.mhp-carousel-head h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
}

.mhp-carousel-viewport {
  position: relative;
}
.mhp-carousel-track {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.mhp-carousel-track::-webkit-scrollbar {
  height: 8px;
}
.mhp-carousel-track::-webkit-scrollbar-thumb {
  background: #d5dbe2;
  border-radius: 4px;
}

.mhp-card {
  flex: 0 0 240px; /* base width; responsive via media rules below */
  scroll-snap-align: start;
  justify-content: center;
  margin: 20px 0;
}
.mhp-card-link {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.mhp-card-link .mhp-top {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mhp-card-link .mhp-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.mhp-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 1/1;
  background: #f7f7f7;
  overflow: hidden;
}
.mhp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1);
  transition: 0.1s ease;
}
.mhp-card-title {
  display: block;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #333;
  min-height: 2.5em;
  text-align: center;
}
.mhp-card-price {
  display: block;
  font-weight: 700;
  margin-top: 2px;
}

/* Prev/next buttons */
.mhp-car-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: #111;
  color: #fff;
  opacity: 0.8;
  cursor: pointer;
  z-index: 100;
  min-height: 0;
  line-height: 0;
  padding: 0;
}
.mhp-car-btn:disabled {
  opacity: 0.35;
  cursor: default;
}
.mhp-car-btn.prev {
  left: 0;
  margin: 0;
}
.mhp-car-btn.next {
  right: 0;
  margin: 0;
}

.mhp-card-btn {
  border: 2px solid #446084;
  color: #446084;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  width: 130px;
  line-height: 1;
}

.mhp-card-link:hover .mhp-card-btn {
  background: #446084;
  color: white;
  border: 2px solid #446084;
  transition-duration: 0.1s;
}

.mhp-card-link:hover .mhp-card-media img {
  transform: scale(1.1);
}

.mhp-card-link:hover .mhp-card-title {
  font-weight: 700;
}

.mhp-carousel-title {
  border-bottom: 1px solid #777;
  padding-bottom: 5px;
  padding-right: 30px;
}

/* Responsive widths */
@media (max-width: 767px) {
  .mhp-card {
    flex: 0 0 72%;
  } /* ~1.3 cards visible */
}
@media (min-width: 1200px) {
  .mhp-car-btn.prev {
    left: -60px;
  }
  .mhp-car-btn.next {
    right: -60px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .mhp-card {
    flex: 0 0 33.333%;
  } /* ~3 up */
}
@media (min-width: 1024px) {
  .mhp-card {
    flex: 0 0 25%;
  } /* ~4 up */
}
