/* Ultimate Product Tabs – Public Styles
 * Elementor-safe: NIE ukrywamy paneli przez CSS display:none na starcie.
 * Widoczność paneli kontroluje wyłącznie JavaScript (jQuery .show()/.hide()).
 */

/* ── Dashicons w zakładkach ── */
.woocommerce-tabs .tabs li a .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    line-height: 1.1;
    vertical-align: middle;
    margin-right: 5px;
    position: relative;
    top: -1px;
    display: inline-block;
}

/* ── Treść per-produkt ── */
.upt-global-content + .upt-product-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e0e0e0;
}

/* ══════════════════════════════════════════
   UKŁAD PIONOWY (VERTICAL)
   Oryginalne WC tabs są chowane przez JS (.hide()),
   więc tu nie potrzebujemy !important.
══════════════════════════════════════════ */
.upt-vertical-tabs {
    display: flex;
    gap: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Sidebar nav */
.upt-tab-nav {
    min-width: 190px;
    max-width: 230px;
    background: #f8f8f8;
    border-right: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.upt-tab-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.upt-tab-nav ul li {
    position: relative;
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0;
    cursor: pointer;
    outline: none;
    transition: background .12s;
}

.upt-tab-nav ul li:last-child { border-bottom: none; }

.upt-tab-nav ul li:hover { background: #f0f0f0; }

.upt-tab-nav ul li:focus {
    box-shadow: inset 0 0 0 2px #2271b1;
    z-index: 1;
}

.upt-tab-nav ul li a {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 16px;
    color: #444;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    pointer-events: none;
}

.upt-tab-nav ul li.active {
    background: #fff;
}

.upt-tab-nav ul li.active::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: #2271b1;
    border-radius: 0 2px 2px 0;
}

.upt-tab-nav ul li.active a {
    color: #2271b1;
    font-weight: 600;
}

.upt-tab-nav ul li a .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Panels area */
.upt-tab-panels {
    flex: 1;
    min-width: 0;
    padding: 24px 28px;
}

.upt-tab-panel h2:first-child { margin-top: 0; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .upt-vertical-tabs { flex-direction: column; }

    .upt-tab-nav {
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .upt-tab-nav ul li.active::before {
        top: auto; bottom: 0; left: 0; right: 0;
        width: auto; height: 3px;
        border-radius: 2px 2px 0 0;
    }

    .upt-tab-panels { padding: 16px; }
}





/* ============================================
   Research Tab — Swipeable Gallery
   Desktop + Mobile
   ============================================ */

/* Kontener galerii */
.research-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 16px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.research-gallery::-webkit-scrollbar {
  display: none;
}

/* Każdy obrazek jako slide */
.research-gallery img {
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  flex: 0 0 calc(25% - 9px); /* 4 w rzędzie + przerwy */
  margin-right: 12px;
  scroll-snap-align: start; /* zamiast center */
}



/* Mobile: slajd 85% */
@media (max-width: 768px) {
  .research-gallery img {
    flex: 0 0 85%;
    max-width: 85%;
  }
}

/* Hint "Przesuń" */
.research-gallery-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.research-gallery-hint svg {
  width: 16px;
  height: 16px;
}

/* Dots indicator */
.research-gallery-dots {
  display: none;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.research-gallery-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.research-gallery-dots .dot.active {
  background: #555;
  transform: scale(1.25);
}

/* Desktop: strzałki nawigacyjne */
.research-gallery-wrapper {
  position: relative;
}

.research-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	color:#000;
}

.research-gallery-nav:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.research-gallery-nav.prev {
  left: -18px;
}

.research-gallery-nav.next {
  right: -18px;
}

.research-gallery-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.research-gallery-nav svg {
  width: 18px;
  height: 18px;
  stroke: #333;
}

.research-gallery img:last-child {
  margin-right: 0;
}

/* Mobile: ukryj strzałki */
@media (max-width: 768px) {
/*   .research-gallery-nav {
    display: none;
  } */
}