.category-detail__summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.2rem;
}

.category-detail__summary-image {
  display: block;
  width: 8rem;
  height: 8rem;
  flex: 0 0 8rem;
  object-fit: contain;
}

.category-detail__summary-description {
  max-width: 65ch;
  margin: 0 0 0.65rem;
  color: #4f5753;
  font-size: 1.05rem;
  line-height: 1.6;
}

.category-detail__summary-total {
  margin: 0;
  color: #374f47;
}

.category-detail__summary-total strong {
  font-variant-numeric: tabular-nums;
}

.category-detail__browse {
  margin: 0 0 2.6rem;
}

.category-detail__browse h2,
.category-detail__products > h2 {
  margin: 0 0 1rem;
  color: #263b33;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.category-detail__category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-detail__category-links a {
  display: inline-flex;
  min-height: 2.65rem;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid #dce4df;
  border-radius: 999px;
  background: #f7f9f7;
  color: #314b40;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition: border-color 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}

.category-detail__category-links a:hover {
  border-color: var(--primary, #374f47);
  background: var(--primary, #374f47);
  color: #fff;
}

.category-detail__category-links a:focus-visible,
.category-detail__pagination a:focus-visible,
.category-detail__catalogue-link a:focus-visible {
  outline: 3px solid var(--secondary, #70a38e);
  outline-offset: 3px;
}

.category-detail__products {
  margin-top: 0;
}

.category-detail__product-grid {
  row-gap: 1.25rem;
}

.category-detail__products .product {
  height: 100%;
  margin-bottom: 0;
}

.category-detail__products .product-thumb-info {
  overflow: hidden;
  margin-bottom: 0.85rem;
  border: 0;
  border-radius: 12px;
  background: #f5f6f3;
}

.category-detail__products .product-thumb-info > .badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  display: inline-flex;
  min-height: 1.8rem;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 999px;
  background: #374f47;
  box-shadow: 0 2px 9px rgb(20 34 28 / 24%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
}

.category-detail__products .product-thumb-info-image {
  aspect-ratio: 3 / 4;
}

.category-detail__products .product-thumb-info-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-detail__products .product > h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.category-detail__products .product > h2 a {
  color: #263b33;
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.category-detail__products .product > h2 a:hover {
  color: var(--primary, #374f47);
  text-decoration: underline;
}

.category-detail__products .product .price {
  margin: 0;
  color: #263b33;
  line-height: 1.5;
}

.category-detail__products .product .price del {
  color: #59635e;
  font-size: 0.88em;
}

.category-detail__pagination {
  margin: 2.5rem 0 0;
}

.category-detail__pagination .pagination {
  gap: 0.4rem;
  align-items: center;
}

.category-detail__pagination .page-link {
  display: grid;
  min-height: 2.75rem;
  place-items: center;
  border-radius: 8px;
  border-color: #dce4df;
  color: #314b40;
}

.category-detail__pagination .page-item.active .page-link {
  border-color: var(--primary, #374f47);
  background: var(--primary, #374f47);
  color: #fff;
}

.category-detail__catalogue-link {
  margin: 2.25rem 0 0;
  text-align: center;
}

.category-detail__catalogue-link a {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--primary, #374f47);
  border-radius: 8px;
  color: var(--primary, #374f47);
  font-weight: 600;
  text-decoration: none;
}

.category-detail__catalogue-link a:hover {
  background: var(--primary, #374f47);
  color: #fff;
}

.category-detail__status-title {
  margin-top: 2rem;
  color: var(--primary, #374f47);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .category-detail__category-links a {
    transition: none;
  }
}

@media (max-width: 575.98px) {
  .category-detail {
    padding-top: 1.75rem !important;
  }

  .category-detail__summary {
    align-items: flex-start;
    gap: 0.9rem;
    margin-bottom: 1.7rem;
  }

  .category-detail__summary-image {
    width: 5rem;
    height: 5rem;
    flex-basis: 5rem;
  }

  .category-detail__summary-description {
    font-size: 0.98rem;
  }

  .category-detail__browse {
    margin-bottom: 2rem;
  }

  .category-detail__product-grid {
    row-gap: 1rem;
  }

  .category-detail__products .product-thumb-info > .badge {
    top: 0.55rem;
    left: 0.55rem;
    min-height: 1.65rem;
    padding-inline: 0.58rem;
    font-size: 0.68rem;
  }
}
