/* Product Showcase Slider Styles */
.pss-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: "Minerva Modern", Sans-serif;
}

.pss-slider-wrapper {
  overflow: hidden;
  width: 100%;
}
.pss-image-container img {
height: 100%!important;
}

.pss-slider {
  display: flex;
  gap: 5px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.pss-slide {
  flex: 0 0 calc(20% - 4px);
  min-width: 0;
}

.pss-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image container + image: hard cover with zero gap */
.pss-image-container {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: transparent;
  margin-bottom: 16px;
  line-height: 0; /* prevents inline-image baseline gap */
}

.pss-product-image {
  position: absolute;
  inset: 0;              /* top:0 right:0 bottom:0 left:0 */
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.4s ease;
}

.pss-image-container:hover .pss-product-image {
  opacity: 0;
}

/* Hover image overlay must also fill */
.pss-image-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hover-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.pss-image-container:hover::after {
  opacity: 1;
}

.pss-product-info {
  text-align: left;
}

.pss-product-title {
  font-size: 16px;
  font-weight: 300;
  font-style: normal;
  margin: 0 0 4px 0;
  line-height: 1.4;
  color: #000;
}

.pss-product-subtitle {
  font-size: 13px;
  font-style: italic;
  margin: 0 0 8px 0;
  color: #666;
}

.pss-product-price {
  font-size: 13px;
  font-weight: 300;
  font-style: normal;
  color: #000;
}

/* Navigation Buttons */
.pss-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  color: #fff;
  padding: 0;
}

/* No dropshadow on icons */
.pss-nav svg {
  width: 48px;
  height: 48px;
  filter: none;
}

.pss-nav:hover {
  opacity: 0.8;
}

.pss-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.pss-nav-prev { left: 20px; }
.pss-nav-next { right: 20px; }

/* Hide navigation when 5 or fewer items */
.pss-container[data-items="1"] .pss-nav,
.pss-container[data-items="2"] .pss-nav,
.pss-container[data-items="3"] .pss-nav,
.pss-container[data-items="4"] .pss-nav,
.pss-container[data-items="5"] .pss-nav {
  display: none;
}

/* Tablet */
@media (max-width: 1024px) {
  .pss-slide {
    flex: 0 0 calc(25% - 3.75px);
  }

  .pss-container[data-items="1"] .pss-nav,
  .pss-container[data-items="2"] .pss-nav,
  .pss-container[data-items="3"] .pss-nav,
  .pss-container[data-items="4"] .pss-nav {
    display: none;
  }

  .pss-container[data-items="5"] .pss-nav {
    display: flex;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .pss-container {
    padding: 30px 10px;
  }

  .pss-slide {
    flex: 0 0 calc(50% - 2.5px);
  }

  .pss-product-title { font-size: 14px; }
  .pss-product-subtitle { font-size: 12px; }
  .pss-product-price { font-size: 14px; }

  .pss-nav { width: 50px; height: 50px; }
  .pss-nav svg { width: 40px; height: 40px; }

  .pss-nav-prev { left: 10px; }
  .pss-nav-next { right: 10px; }

  /* Show navigation when more than 2 items on mobile */
  .pss-container[data-items="1"] .pss-nav,
  .pss-container[data-items="2"] .pss-nav {
    display: none;
  }

  .pss-container[data-items="3"] .pss-nav,
  .pss-container[data-items="4"] .pss-nav,
  .pss-container[data-items="5"] .pss-nav {
    display: flex;
  }
}

@media (max-width: 480px) {
  .pss-container { padding: 20px 5px; }
}

/* Optional: tiny zoom to hide rare white edges inside source photos */
/* .pss-product-image { transform: scale(1.03); } */