/* =====================================
   CATEGORY LCP SLIDER — STABLE CORE
===================================== */

.category-lcp {
  display: grid;
  padding-top: 0; /* ⬅️ повітря від хедера */
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
  align-items: start;
}

/* ==============================
   LEFT: STATIC IMAGE (LCP)
============================== */

.category-lcp__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10; /* ⬅️ зменшена висота */
  overflow: hidden;
  background: #f3f3f3;
}

.category-lcp__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==============================
   RIGHT: SLIDER
============================== */

.category-lcp__slider {
  position: relative;
  overflow: hidden;
}

.category-lcp__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.category-lcp__slide {
  flex: 0 0 100%;
  aspect-ratio: 16 / 10; /* ⬅️ синхронно зліва */
  overflow: hidden;
}

.category-lcp__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==============================
   DOTS
============================== */

/* ==============================
   DOTS WRAPPER
============================== */

.category-lcp__dots {
  display: flex;              /* ⬅️ ГОЛОВНЕ */
  justify-content: center;
  align-items: center;
  gap: 6px;                   /* відстань між зонами кліку */
  margin-top: 14px;
}

/* ==============================
   DOT BUTTON (TOUCH TARGET)
============================== */

.category-lcp__dots button {
  position: relative;

  /* TOUCH AREA ≥ 44x44 */
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* VISIBLE DOT */
.category-lcp__dots button::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8DAC99;
  opacity: 0.35;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ACTIVE */
.category-lcp__dots button.active::before {
  opacity: 1;
  transform: scale(1.15);
}

/* ==============================
   DESKTOP LIMIT (ANTI GIANT)
============================== */

@media (min-width: 1200px) {
  .category-lcp__image,
  .category-lcp__slide {
    max-height: 420px;
  }
}

/* ==============================
   MOBILE
============================== */

@media (max-width: 768px) {
  .category-lcp {
    grid-template-columns: 1fr;
  }

  .category-lcp__image,
  .category-lcp__slide {
    aspect-ratio: 4 / 5;
    max-height: none;
  }
}

@media (max-width: 768px) {

  .category-lcp__slider {
    display: none;
  }

}









.category-lcp-block {
    grid-column: 1 / -1 !important;  /* розтягнути на всю ширину */
    width: 100% !important;
    display: block !important;
	padding-top: 20px;
}
.woocommerce.columns-4 > .category-lcp-block {
    display: block !important;
}
/* FIX for BRAND pages (product_brand) */
.category-lcp-block {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    display: block !important;
    margin-bottom: 30px !important;
}

/* Обовʼязково для сторінок брендів */
.woocommerce.columns-4 > .category-lcp-block {
    display: block !important;
    grid-column: 1 / -1 !important;
}



/* Вирівнюємо FAQ на брендах поза товарною сіткою */
.category-faq {
    width: 100%;
    grid-column: 1 / -1 !important;
    display: block;
    margin-top: 40px;
}
/* ================================================
   ВИТЯГУЄМО FAQ І ОПИС З ГРИДА ТОВАРІВ (BRAND + CAT)
   ================================================ */

/* сам WooCommerce грід */
ul.products {
  display: grid !important;
}

/* ===========================
   FAQ / SEO Блоки
   =========================== */

.category-faq,
.category-seo {
  grid-column: 1 / -1 !important;      /* розтягнути на всю ширину */
  width: 100% !important;
  max-width: 1200px;
  margin: 40px auto !important;
  display: block !important;
}

/* для брендів обгортка додається темою */
.category-extra-blocks,
.category-lcp-block {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 40px auto !important;
  display: block !important;
}

/* PAGINATION — теж витягуємо */
.category-pagination,
.woocommerce-pagination {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 40px auto !important;
}
.brand-pagination {
  width: 100%;
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.brand-pagination .page-numbers {
  margin: 0 6px;
  padding: 10px 16px;
  background: #f2f2f2;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
}

.brand-pagination .current {
  background: #8DAC99;
  color: #fff;
}


/* ОБГОРТКА FAQ + SEO — МОЖЕ МАТИ ВІДСТУП */
.category-extra-blocks {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 40px auto !important;
  display: block !important;
}

/* LCP — БЕЗ ВЕРХНЬОГО ПОВІТРЯ */
.category-lcp-block {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin: 0 auto 30px !important; /* ⬅️ ВАЖЛИВО */
  display: block !important;
}
