/* Abordazh — /catalog category index (home/root category as a subcategory-banner showcase).
   Full-width layout, no products, no filter. Subcategory links rendered as tile cards. */

.category__header--index {
  --abzci-border: #dcdcdc;
  --abzci-panel:  #051e05;
  --abzci-tile:   #f8f8f8;
  font-family: var(--font-body, "IBM Plex Sans", system-ui, sans-serif);
}

.category__header--index .subcategory { margin-top: 8px; }

.category__header--index .subcategory__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 0; padding: 0; list-style: none;
}

.category__header--index .subcategory__link {
  display: flex; align-items: center; justify-content: center;
  min-height: 128px; padding: 24px 20px;
  border: 1px solid var(--abzci-border); border-radius: 8px;
  background: var(--abzci-tile);
  color: var(--abzci-panel); text-decoration: none; text-align: center;
  transition: border-color .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.category__header--index .subcategory__link:hover {
  border-color: var(--abzci-panel);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(5, 30, 5, .10);
}

/* when a subcategory has an image, show it above the name */
.category__header--index .subcategory__link--with-image { flex-direction: column; gap: 12px; }
.category__header--index .subcategory__thumbnail {
  width: 100%; height: auto; max-height: 160px; object-fit: contain;
}

.category__header--index .subcategory__name {
  font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: .2px;
}

@media (max-width: 575px) {
  .category__header--index .subcategory__list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .category__header--index .subcategory__link { min-height: 96px; padding: 18px 14px; }
  .category__header--index .subcategory__name { font-size: 16px; }
}

/* =============================================================================
   /catalog index — "Додатковий опис" (admin) rendered at the bottom as an
   understated SEO block, matching the homepage .abz-seo look.
   ========================================================================== */
.category__footer--index {
  padding-block: clamp(32px, 4.5vw, 56px) clamp(8px, 2vw, 24px);
}
.category__footer--index .category__additional-description {
  max-width: 880px;
  margin-inline: 0;        /* left-aligned (centered SEO is for the homepage only) */
  text-align: left;
}
.category__footer--index .category__additional-description p {
  margin: 0 0 12px;
  font-size: clamp(13.5px, 1vw, 15px);
  line-height: 1.65;
  color: #6a776a;
}
.category__footer--index .category__additional-description p:last-child { margin-bottom: 0; }
.category__footer--index .category__additional-description strong { color: #051e05; font-weight: 600; }

/* /catalog index — short intro "Опис" (admin) under the H1: same 880 width as the
   bottom SEO block, left-aligned, understated. */
.category__header--index .category__description {
  max-width: 880px;
  margin: clamp(10px, 1.4vw, 16px) 0 clamp(18px, 2.4vw, 30px);
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: #46564a;
}
.category__header--index .category__description strong { color: #051e05; font-weight: 600; }

/* /catalog index — the intro "Опис" already spaces things out, so the tiles block
   doesn't need the homepage's big top padding. Keep a moderate bottom gap only. */
.abz-cats--index { padding-block: 0 clamp(24px, 3vw, 44px); }
