/* Software Downloads Table */
.table-wrap {
  overflow-x: auto;
  margin-top: 2rem;
}

table#software-downloads-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  font-size: 0.8rem;
}

table#software-downloads-table tbody {
  border-top: 2px solid #111;
  border-bottom: 2px solid #111;
}

table#software-downloads-table th {
  background: none;
  border: none;
}

table#software-downloads-table tr td {
  padding: 12px 16px;
  vertical-align: top;
}

/* Column – File Name */
table#software-downloads-table tr td:nth-child(1) {
  width: 200px;
}

/* Column – Description */
table#software-downloads-table tr td:nth-child(3) {
  width: 600px;
}

table#software-downloads-table tr:nth-child(odd) td {
  background: #fff;
}

table#software-downloads-table tr td:first-child, table#software-downloads-table tr td:last-child {
  border-left: none;
  border-right: none;
}

/* Product Gallery Section */
.product-gallery-active-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  transition: opacity 0.2s ease-in-out;
}

.gallery-thumbnails-wrap {
  position: relative;
  margin-top: 2rem;
}

.gallery-thumbnails {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0 50px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.gallery-thumbnails li {
  flex-shrink: 0;
  scroll-snap-align: center;
}

.gallery-thumbnail {
  width: 250px;
  height: 167px; /* 3:2 aspect ratio */
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.2s ease-in-out;
  display: block;
}

.gallery-thumbnail:hover {
  border-color: rgba(211, 17, 69, 0.5);
  transform: scale(1.02);
}

.gallery-thumbnail.active {
  border-color: #d31145;
  box-shadow: 0 0 0 1px #d31145;
}

/* Navigation Buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 6px;
  border: none;
  background: white;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease-in-out;
  z-index: 10;
}

.gallery-nav:hover {
  background: #d31145;
  color: white;
  box-shadow: 0 4px 12px rgba(211, 17, 69, 0.3);
}

.gallery-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav-left {
  left: 0;
}

.gallery-nav-right {
  right: 0;
}

/* Shadow Indicators */
.gallery-thumbnails-wrap::before,
.gallery-thumbnails-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  pointer-events: none;
  z-index: 5;
}

.gallery-thumbnails-wrap::before {
  left: 40px;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  transition: opacity 0.2s ease-in-out;
}

.gallery-thumbnails-wrap::after {
  right: 40px;
  background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
  transition: opacity 0.2s ease-in-out;
}

.gallery-thumbnails-wrap.at-start::before {
  opacity: 0;
}

.gallery-thumbnails-wrap.at-end::after {
  opacity: 0;
}
