/**
 * WP AJAX Pagination — стилі пагінації та стани завантаження.
 * Теми можуть перевизначати або доповнювати ці стилі.
 */

/* -----------------------------------------------------------------------
   Зовнішній контейнер: колонка з gap 26px
   ----------------------------------------------------------------------- */

.wpap-ctrl-row,
.ctrl-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 62px;
  margin-bottom: 26px;
}

/* -----------------------------------------------------------------------
   Рядок навігації: стрілка + цифри + стрілка
   ----------------------------------------------------------------------- */

.wpap-ctrl-nav,
.ctrl-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 31px;
}

/* -----------------------------------------------------------------------
   Пагінація — цифри та ellipsis
   ----------------------------------------------------------------------- */

.wpap-ctrl-pagin,
.ctrl-pagin {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}

.wpap-ctrl-pagin__item,
.ctrl-pagin__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1A1A1A;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.wpap-ctrl-pagin__item:hover,
.ctrl-pagin__item:hover {
  color: #C9A227;
  text-decoration: none;
}

.wpap-ctrl-pagin__item.active,
.ctrl-pagin__item.active {
  min-width: 36px;
  height: 35px;
  background: #1A1A1A;
  color: #fff;
  cursor: default;
  pointer-events: none;
}

.wpap-ctrl-pagin__ellipsis,
.ctrl-pagin__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 23px;
  letter-spacing: 0.04em;
  color: #C9A227;
  pointer-events: none;
}

/* -----------------------------------------------------------------------
   Стрілки prev / next
   ----------------------------------------------------------------------- */

.wpap-ctrl-nav-prev,
.wpap-ctrl-nav-next,
.ctrl-nav-prev,
.ctrl-nav-next {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s;
}

.wpap-ctrl-nav-prev:hover,
.wpap-ctrl-nav-next:hover,
.ctrl-nav-prev:hover,
.ctrl-nav-next:hover {
  opacity: 0.5;
}

/* -----------------------------------------------------------------------
   Лічильник результатів
   ----------------------------------------------------------------------- */

.wpap-ctrl-count,
.ctrl-count {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 120%;
  letter-spacing: 0.04em;
  color: #8B8B8B;
  text-align: center;
}

/* -----------------------------------------------------------------------
   Кнопка "Дивитись більше" / "Load More"
   ----------------------------------------------------------------------- */

.wpap-load-more {
  text-align: center;
}

.btn-view-all,
.btn-view-all-woo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 204px;
  height: 60px;
  border: 1px solid #1A1A1A;
  background: transparent;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 1.12px;
  color: #1A1A1A;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

@media screen and (max-width: 768px) {

  .btn-view-all,
  .btn-view-all-woo {
    width: 170px;
    height: 40px;
    font-size: 14px;
  }
}

.btn-view-all:hover,
.btn-view-all-woo:hover {
  background: #1A1A1A;
  color: #fff;
}

.btn-view-all.loading,
.btn-view-all-woo.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-view-all.disabled,
.btn-view-all-woo.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}

/* -----------------------------------------------------------------------
   Стан завантаження контейнера
   ----------------------------------------------------------------------- */

.wap-loading {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease;
}