.hpn-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Mobile */
  gap: 0;
  Margin-bottom: 30px
}

@media (min-width: 992px) {
  .hpn-products {
    grid-template-columns: repeat(4, 1fr); /* Desktop */
  }
}

.hpn-item {
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) {
  .hpn-item {
    margin-right: 8px;
  }
  .hpn-item:nth-child(4n) {
    margin-right: 0;
  }
}

@media (max-width: 991px) {
  .hpn-item {
    margin-right: 8px;
  }
  .hpn-item:nth-child(2n) {
    margin-right: 0;
  }
}

/* Contenitore immagine con altezza fissa */
.hpn-img-container {
  position: relative;
  width: 100%;
  height: 250px; /* altezza fissa */
  overflow: hidden;
}

.hpn-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Pulsanti */
.hpn-prev, .hpn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  font-size: 18px;
}

.hpn-prev { left: 5px; }
.hpn-next { right: 5px; }

.hpn-img-container:hover .hpn-prev,
.hpn-img-container:hover .hpn-next {
  opacity: 1;
}

/* Info sotto immagine */
.hpn-info {
  flex-grow: 1; /* riempie lo spazio per uniformare altezza */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5px;
}

.hpn-title-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hpn-title {
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70%;
}

.hpn-price {
  font-weight: bold;
}

.hpn-subtitle {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.hpn-img-link { display:block; position:relative; z-index:1; height: 100%; width: 100% }
.hpn-prev, .hpn-next { z-index:2; }