/* ==============================================
   Product Image Slider – pis.css
   ============================================== */

.pis-wrap {
  width: 100%;
}

/* ---- Stage ---- */
.pis-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 6px;
}

.pis-slides {
  display: flex;
  height: 100%;
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.pis-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pis-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
  box-sizing: border-box;
}

/* ---- Arrows ---- */
.pis-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #cccccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), 0 1px 3px rgba(0, 0, 0, 0.14);
  padding: 0;
  outline: none;
  line-height: 1;
}

.pis-arrow:focus-visible {
  outline: 2px solid #1a1a1a;
  outline-offset: 2px;
}

.pis-arrow:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

/* Icon inside arrow — works for FA <i>, SVG, or any icon library */
.pis-arrow i,
.pis-arrow svg {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: #1a1a1a;
  fill: #1a1a1a;
  display: block;
  line-height: 1;
  transition: color 0.2s ease, fill 0.2s ease;
  pointer-events: none;
}

.pis-arrow:hover i,
.pis-arrow:hover svg {
  color: #ffffff;
  fill: #ffffff;
}

.pis-prev { left: 12px; }
.pis-next { right: 12px; }

/* Hide arrows & thumbs when single image */
.pis-single .pis-arrow,
.pis-single .pis-thumbs {
  display: none;
}

/* ---- Thumbnails ---- */
.pis-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.pis-thumbs::-webkit-scrollbar {
  display: none;
}

.pis-thumb {
  flex: 0 0 90px;
  width: 90px;
  height: 90px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  background: #f5f5f5;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.pis-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 6px;
  box-sizing: border-box;
}

.pis-thumb.active {
  border-color: #1a1a1a;
}

.pis-thumb:hover:not(.active) {
  border-color: #888;
}
