/* =========================
   RELATED PRODUCTS – THUMBNAIL STRIP (FIXED)
========================= */

.related-products {
  margin-top: 60px;
  width: 100%;
}

.related-products h3 {
  margin-bottom: 15px;
  color: orange;
}

/* Wrapper spans full screen width */
.thumb-strip-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Horizontal strip */
.thumb-strip {
  display: flex;
  flex-direction: row;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  width: 100%;
  padding: 15px 0;
  scroll-behavior: smooth;
}

.thumb-strip::-webkit-scrollbar {
  display: none;
}

/* Individual thumbnail */
.thumb-item {
  flex: 0 0 auto;
  width: 140px;
  text-align: center;
  text-decoration: none;
  color: #eee;
}

/* Thumbnail image (FORCED SIZE) */
.thumb-item img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 4px;
  padding: 6px;
  transition: transform 0.3s ease;
}

.thumb-item:hover img {
  transform: scale(1.08);
}

/* Caption */
.thumb-item span {
  display: block;
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.3;


   /* NEW */
  white-space: normal;              /* allow wrapping */
  word-break: break-word;           /* break long words */
  height: 32px;                     /* fixed height (2 lines) */
  overflow: hidden;
  
  display: -webkit-box;
  -webkit-line-clamp: 2;            /* max 2 lines */
  -webkit-box-orient: vertical;
}

/* Scroll buttons */
.thumb-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.8);
  color: orange;
  border: none;
  font-size: 26px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 5;
}

.thumb-scroll-btn.left {
  left: 0;
}

.thumb-scroll-btn.right {
  right: 0;
}

.thumb-scroll-btn:hover {
  background: orange;
  color: #000;
}

/* Hide buttons on small screens (swipe instead) */
@media (max-width: 768px) {
  .thumb-scroll-btn {
    display: none;
  }
}
