/* Category overview at /catalog. All rules are scoped to its section. */
.main:has(.tf-catalog-overview) {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 40px 80px;
}
.main:has(.tf-catalog-overview) .card-header-nav {
  font-size: 13px;
  line-height: 1.5;
}
.main:has(.tf-catalog-overview) .category__header-title {
  padding: 12px 0 18px;
  border-color: #e6ded6;
}
.main:has(.tf-catalog-overview) .category__header-title h2 {
  font-size: 36px;
  line-height: 1.18;
  letter-spacing: -1.3px;
}
.tf-catalog-overview.catalog__container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 28px !important;
  padding-bottom: 0;
  gap: 0;
}
.tf-catalog-overview .catalog__list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.tf-catalog-overview .catalog__list > .tf-category-card {
  height: auto;
  min-width: 0;
  width: auto;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e6ded6;
  border-radius: 16px;
  box-shadow: 0 3px 12px #30241a05;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.tf-catalog-overview .tf-category-card::after {
  display: none;
}
.tf-catalog-overview .tf-category-card:hover {
  border-color: #cebaa8;
  box-shadow: 0 10px 24px #30241a12;
  transform: translateY(-3px);
}
.tf-catalog-overview .tf-category-card:focus-within {
  outline: 2px solid #d53d0c;
  outline-offset: 3px;
}
.tf-catalog-overview .tf-category-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: #252324;
  text-decoration: none;
}
.tf-catalog-overview .tf-category-card__image {
  width: 100%;
  aspect-ratio: 7 / 9;
  overflow: hidden;
  background: #f6f2ed;
  border-bottom: 1px solid #f1ece6;
}
.tf-catalog-overview .tf-category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s;
}
.tf-catalog-overview .tf-category-card:hover img {
  transform: scale(1.02);
}
.tf-catalog-overview .tf-category-card__caption {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 18px;
  gap: 12px;
}
.tf-catalog-overview .tf-category-card__caption h3 {
  min-width: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.4px;
}
.tf-catalog-overview .tf-category-card__arrow {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff2ec;
  color: #d53d0c;
  font: 22px Arial, sans-serif;
}
@media (max-width: 1050px) {
  .main:has(.tf-catalog-overview) { padding: 20px 24px 64px; }
  .tf-catalog-overview .catalog__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .main:has(.tf-catalog-overview) { padding: 16px 16px 48px; }
  .main:has(.tf-catalog-overview) .card-header-nav,
  .main:has(.tf-catalog-overview) .card-header-nav .link { font-size: 11px; line-height: 1.6; }
  .main:has(.tf-catalog-overview) .category__header-title h2 { font-size: 28px; letter-spacing: -.8px; }
  .tf-catalog-overview.catalog__container { padding-top: 20px !important; }
  .tf-catalog-overview .catalog__list { gap: 12px; }
  .tf-catalog-overview .catalog__list > .tf-category-card { border-radius: 12px; }
  .tf-catalog-overview .tf-category-card__caption { min-height: 68px; padding: 12px; gap: 8px; }
  .tf-catalog-overview .tf-category-card__caption h3 { font-size: 14px; line-height: 1.4; letter-spacing: -.2px; }
  .tf-catalog-overview .tf-category-card__arrow { flex-basis: 24px; width: 24px; height: 24px; font-size: 18px; }
}
@media (max-width: 360px) {
  .main:has(.tf-catalog-overview) { padding-left: 12px; padding-right: 12px; }
  .tf-catalog-overview .catalog__list { gap: 10px; }
  .tf-catalog-overview .tf-category-card__caption { padding: 10px; gap: 6px; }
  .tf-catalog-overview .tf-category-card__caption h3 { font-size: 13px; }
  .tf-catalog-overview .tf-category-card__arrow { flex-basis: 22px; width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tf-catalog-overview .tf-category-card,
  .tf-catalog-overview .tf-category-card__image img { transition: none; }
  .tf-catalog-overview .tf-category-card:hover,
  .tf-catalog-overview .tf-category-card:hover img { transform: none; }
}
