/* Gallery Layout */
.product-gallery {
  width: 100%;
  /*max-width: 900px;*/
  margin: auto;
  display: flex;
  flex-direction: row-reverse;
  gap: 20px;
  align-items: flex-start;
}

/* Main Image Right Side */
.main-image-box {
  position: relative;
  flex: 1;
  height: 550px;
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  /*box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);*/
}

.main-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thumbnail Section Left Side */
.thumbnail-wrapper {
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 0;
}

/* Thumbnail Container */
.thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-height: 465px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

/* Thumbnail */
.thumb {
  width: 90px;
  height: 90px;
  flex-shrink: 0;
  padding: 5px;
  border: 1px solid rgba(92, 112, 126, 0.3);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.thumb:hover {
  transform: scale(1.01);
}

.thumb.active {
  border-color: var(--yellow-color);
}

/* Thumbnail Arrow */
.thumb-arrow {
  width: 35px;
  height: 35px;

  border: none;
  border-radius: 50%;

  background: #111;
  color: #fff;

  cursor: pointer;
  font-size: 16px;
}

.thumb-arrow:hover {
  background: #444;
}


/* Main Image Navigation */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 45px;
  height: 45px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.9);
  color: #111;

  font-size: 20px;
  cursor: pointer;

  z-index: 5;
}

.nav-btn:hover {
  background: #111;
  color: #fff;
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}


/* Mobile Responsive */
@media (max-width: 600px) {

  .product-gallery {
    flex-direction: column;
    gap: 15px;
  }

  .main-image-box {
    width: 100%;
    height: 400px;
  }

  .thumbnail-wrapper {
    width: 100%;
    flex-direction: row;
  }

  .thumbnails {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
  }

  .thumb {
    width: 75px;
    height: 75px;
  }
}