/* =====================================================
   1) WC ACCORDION (BOTTOM, PRODUCT PAGE)
===================================================== */

.woocommerce-tabs .tabs {
  display: none;
}

.wc-accordion-title {
  cursor: pointer;
  background: #676767;
  color: #fff;
  padding: 12px 16px;
  margin-top: 6px;
  border-radius: 6px;

  font-size: 16px;
  font-weight: 600;

  display: flex;
  justify-content: space-between;
  align-items: center;

  transition: background .25s ease, color .25s ease;
}

.wc-accordion-title:hover {
  filter: brightness(1.08);
}

.wc-accordion-title.active {
  background: #8DAC99;
  color: #000;
}

.wc-accordion-title::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .25s ease;
}

.wc-accordion-title.active::after {
  transform: rotate(-135deg);
}

.wc-accordion-content {
  display: none;
  padding: 16px;
  background: #fff;
  border-radius: 0 0 6px 6px;
}



/* =====================================================
   2) TOP TABS BAR (HORIZONTAL SCROLL)
===================================================== */

.product-top-tabs-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-top-tabs {
  display: flex;
  gap: 10px;

  overflow-x: auto;
  scroll-behavior: smooth;

  padding: 6px 0;

  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-top-tabs::-webkit-scrollbar {
  display: none;
}

.product-top-tab {
  flex: 0 0 auto;
  white-space: nowrap;

  padding: 8px 14px;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;

  font-size: 14px;
  font-weight: 500;

  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.product-top-tab:hover {
  border-color: #8DAC99;
}

.product-top-tab.active {
  background: #8DAC99;
  border-color: #8DAC99;
  color: #000;
}



/* =====================================================
   3) TOP TABS ARROWS (BOLD, CLEAN)
===================================================== */

.tabs-arrow {
  flex: 0 0 auto;

  background: transparent;
  border: none;
  padding: 6px 8px;

  color: #8DAC99;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  transition: opacity .2s ease, transform .15s ease;
}

.tabs-arrow:hover:not([disabled]) {
  opacity: .85;
  transform: translateX(1px);
}

.tabs-arrow[disabled] {
  opacity: .25;
  cursor: default;
}

@media (max-width: 768px) {
  .tabs-arrow {
    display: none;
  }
}



/* =====================================================
   4) WC TAB POPUP (SINGLE, CLEAN, SCROLL SAFE)
===================================================== */

.wc-tab-popup {
  position: fixed;
  top: 120px;                 /* під хедером */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;

  display: none;
}

/* білий floating card */
.wc-tab-popup__panel {
  position: relative;

  width: 640px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 160px);

  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,.28);

  display: flex;
  flex-direction: column;
}

/* scroll тільки для контенту */
.wc-tab-popup__content {
  padding: 24px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* центруємо читабельний контент */
.wc-tab-popup__content > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* таблиці характеристик */
.wc-tab-popup__content table {
  width: 100%;
  margin: 0 auto;
  text-align: left;
}

/* кнопка закриття */
.wc-tab-popup__close {
  position: absolute;
  top: 14px;
  right: 16px;

  font-size: 26px;
  line-height: 1;

  background: none;
  border: none;
  cursor: pointer;
}

/* scrollbar (акуратний) */
.wc-tab-popup__content::-webkit-scrollbar {
  width: 8px;
}
.wc-tab-popup__content::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,.25);
  border-radius: 6px;
}

/* блокуємо body scroll */
body.wc-tab-popup-open {
  overflow: hidden;
}
@media (max-width: 992px) {
  .tabs-arrow {
    display: none !important;
  }
}



/* WRAPPER */
.product-top-bar {
  background: #f7f7f7;
}

.product-top-tabs-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ВКЛАДКИ */
.product-top-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;

  flex: 1;                 /* ⬅️ КЛЮЧ */
  padding: 6px 0;

  scrollbar-width: none;
}
.product-top-tabs::-webkit-scrollbar {
  display: none;
}

/* СТРІЛКИ — КВАДРАТНІ */
.tabs-arrow {
  flex: 0 0 auto;
  width: 45px;
  height: 40px;

  background: transparent;
  color: #353535;

  border: none;
  border-radius: 1px;       /* ⬅️ квадрат з мʼякими кутами */

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: background .2s ease, transform .15s ease, opacity .2s ease;
}

.tabs-arrow:hover {
  background: #fff;
}

.tabs-arrow:active {
  transform: scale(0.95);
}
