.product-gallery-container {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  padding: 0;
}

.gallery-section {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 92, 167, 0.1);
  overflow: hidden;
  border: 1px solid #e8ecf4;
}

.gallery-title {
  margin: 0;
  padding: 18px 20px;
  font-size: 18px;
  font-weight: 600;
  color: #005ca7;
  background: linear-gradient(135deg, #f8fbff 0%, #e8f4fd 100%);
  border-bottom: 2px solid #005ca7;
  text-align: center;
}

.gallery-content {
  display: flex;
  padding: 20px;
  gap: 20px;
  height: 500px;
}

.main-image-container {
  flex: 1;
  background: #f8fbff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e8ecf4;
  position: relative;
}

.main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.main-image:hover {
  transform: scale(1.05);
}

.thumbnails-container {
  width: 100px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8ecf4;
  overflow: hidden;
}

.thumbnails-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thumbnails-scroll::-webkit-scrollbar {
  width: 6px;
}

.thumbnails-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.thumbnails-scroll::-webkit-scrollbar-thumb {
  background: #005ca7;
  border-radius: 3px;
}

.thumbnails-scroll::-webkit-scrollbar-thumb:hover {
  background: #0078d4;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  margin: 0 auto;
  display: block;
}

.thumbnail:hover {
  transform: scale(1.05);
  border-color: #005ca7;
  box-shadow: 0 2px 8px rgba(0, 92, 167, 0.3);
}

.thumbnail.active {
  border-color: #005ca7;
  box-shadow: 0 0 0 3px rgba(0, 92, 167, 0.2);
  transform: scale(1.05);
}

@media (max-width: 1200px) {
  .product-gallery-container {
    gap: 15px;
    margin: 20px 0;
  }

  .gallery-title {
    padding: 15px 18px;
    font-size: 16px;
  }

  .gallery-content {
    padding: 15px;
    gap: 15px;
    height: 450px;
  }

  .thumbnails-container {
    width: 90px;
  }

  .thumbnail {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 992px) {
  .product-gallery-container {
    flex-direction: column;
    gap: 20px;
  }

  .gallery-section {
    width: 100%;
  }

  .gallery-content {
    height: 400px;
  }

  .thumbnails-container {
    width: 80px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 768px) {
  .product-gallery-container {
    margin: 15px 0;
    gap: 15px;
  }

  .gallery-title {
    padding: 12px 15px;
    font-size: 15px;
  }

  .gallery-content {
    padding: 12px;
    gap: 12px;
    height: 350px;
  }

  .main-image-container {
    border-width: 1px;
  }

  .thumbnails-container {
    width: 70px;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }

  .thumbnails-scroll {
    padding: 8px 0;
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .gallery-content {
    height: 300px;
    flex-direction: column;
  }

  .main-image-container {
    flex: 1;
    min-height: 200px;
  }

  .thumbnails-container {
    width: 100%;
    height: 80px;
    flex-direction: row;
  }

  .thumbnails-scroll {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 10px;
  }

  .thumbnails-scroll::-webkit-scrollbar {
    width: auto;
    height: 6px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .product-gallery-container {
    margin: 10px 0;
    gap: 10px;
  }

  .gallery-title {
    padding: 10px 12px;
    font-size: 14px;
  }

  .gallery-content {
    padding: 10px;
    gap: 10px;
    height: 280px;
  }

  .main-image-container {
    min-height: 180px;
  }

  .thumbnails-container {
    height: 70px;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }
}
