/* Tech category pages (taxonomy: product_category)
   Layout-only migration from tex-k_test.
   IMPORTANT: avoid hardcoded palette changes; keep existing theme colors. */

.tech-category-page .section--category-header {
  padding: 0;
}

.tech-category-page .category-header {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 24px 0 28px;
}

.tech-category-page .breadcrumbs-category {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 0;
  font-size: 14px;
  line-height: 1.4;
}

.tech-category-page .category-header__title {
  margin: 0 0 12px 0;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
}

.tech-category-page .category-header__description {
  font-size: 12.8px;
  line-height: 2;
  margin-top: 16px;
  max-width: 680px;
  font-family: "Proxima Nova Rg", sans-serif !important;
}

/* Subcategories */
.tech-category-page .section--category-subcats {
  padding-top: 24px;
  padding-bottom: 16px;
}

.tech-category-page .catalog-subcats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-category-page .catalog-subcats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.tech-category-page .catalog-subcats__image-wrap {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.tech-category-page .catalog-subcats__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tech-category-page .catalog-subcats__title-wrap {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
}

.tech-category-page .catalog-subcats__title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.tech-category-page .catalog-subcats__arrow {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Products grid */
.tech-category-page .section--category-products {
  padding-top: 16px;
  padding-bottom: 56px;
}

.tech-category-page .products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.tech-category-page .product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tech-category-page .product-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.tech-category-page .product-card__image a {
  display: block;
  height: 100%;
}

.tech-category-page .product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 15px;
}

.tech-category-page .product-card__content {
  flex: 1;
  padding: 20px;
}

.tech-category-page .product-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.tech-category-page .product-card__subtitle,
.tech-category-page .product-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.tech-category-page .product-card__footer {
  padding: 0 20px 20px;
  display: flex;
}

.tech-category-page .product-card__footer .btn {
  width: 100%;
  justify-content: center;
}

/* Pagination wrapper */
.tech-category-page .products-pagination {
  margin-top: 30px;
}

@media (max-width: 1200px) {
  .tech-category-page .catalog-subcats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .tech-category-page .catalog-subcats {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
  }
}

@media (max-width: 480px) {
  .tech-category-page .catalog-subcats {
    grid-template-columns: 1fr;
  }

  .tech-category-page .catalog-subcats__image-wrap {
    height: 140px;
  }
}

