/* Nova Gallery Pro 7.1.0 — one-row WooCommerce thumbnail carousel */
.single-product .woocommerce-product-gallery.npcf-gallery-pro-ready {
  --npcf-gallery-gap: 12px;
  --npcf-gallery-thumb: 104px;
  --npcf-gallery-arrow: 34px;
}

.single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .npcf-gallery-pro-track {
  position: relative;
  display: grid;
  grid-template-columns: var(--npcf-gallery-arrow) minmax(0, 1fr) var(--npcf-gallery-arrow);
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  box-sizing: border-box;
}

.single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .flex-control-thumbs {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: var(--npcf-gallery-gap) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 2px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none !important;
  box-sizing: border-box;
}

.single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .flex-control-thumbs::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .flex-control-thumbs li {
  float: none !important;
  flex: 0 0 var(--npcf-gallery-thumb) !important;
  width: var(--npcf-gallery-thumb) !important;
  max-width: var(--npcf-gallery-thumb) !important;
  margin: 0 !important;
  padding: 0 !important;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .flex-control-thumbs img {
  display: block !important;
  width: 100% !important;
  height: var(--npcf-gallery-thumb) !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 4px !important;
  border: 1px solid rgba(139, 105, 20, .28) !important;
  border-radius: 8px;
  background: #fff;
  object-fit: contain !important;
  object-position: center !important;
  cursor: pointer;
  opacity: .72;
  box-sizing: border-box;
  transition: opacity .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .flex-control-thumbs img:hover,
.single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .flex-control-thumbs img.flex-active {
  opacity: 1;
  border-color: #d6a64b !important;
  box-shadow: 0 0 0 2px rgba(214, 166, 75, .2);
}

.single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .flex-control-thumbs img:hover {
  transform: translateY(-1px);
}

.single-product .woocommerce-product-gallery .npcf-gallery-pro-arrow {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--npcf-gallery-arrow);
  height: var(--npcf-gallery-arrow);
  min-width: var(--npcf-gallery-arrow);
  padding: 0;
  margin: 0;
  border: 1px solid rgba(139, 105, 20, .34);
  border-radius: 999px;
  background: #fffaf1;
  color: #7f1d1d;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(31, 41, 55, .08);
  transition: opacity .18s ease, transform .18s ease, background .18s ease;
}

.single-product .woocommerce-product-gallery .npcf-gallery-pro-arrow:hover:not(:disabled) {
  background: #fff3d7;
  transform: translateY(-1px);
}

.single-product .woocommerce-product-gallery .npcf-gallery-pro-arrow:focus-visible {
  outline: 2px solid #0b3d2e;
  outline-offset: 2px;
}

.single-product .woocommerce-product-gallery .npcf-gallery-pro-arrow:disabled {
  opacity: .28;
  cursor: default;
  box-shadow: none;
}

@media (max-width: 1024px) {
  .single-product .woocommerce-product-gallery.npcf-gallery-pro-ready {
    --npcf-gallery-thumb: 90px;
    --npcf-gallery-gap: 10px;
    --npcf-gallery-arrow: 32px;
  }
}

@media (max-width: 767px) {
  .single-product .woocommerce-product-gallery.npcf-gallery-pro-ready {
    --npcf-gallery-thumb: 78px;
    --npcf-gallery-gap: 9px;
    --npcf-gallery-arrow: 30px;
  }

  .single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .npcf-gallery-pro-track {
    gap: 6px;
    margin-top: 10px;
  }

  .single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .flex-control-thumbs img {
    padding: 3px !important;
    border-radius: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .flex-control-thumbs {
    scroll-behavior: auto;
  }
  .single-product .woocommerce-product-gallery.npcf-gallery-pro-ready .flex-control-thumbs img,
  .single-product .woocommerce-product-gallery .npcf-gallery-pro-arrow {
    transition: none;
  }
}
