/* Category pages with children are navigation-only; product listing styles stay separate. */
.tf-category-landing .tf-page-heading{margin:18px 0 24px}
.tf-category-landing .tf-page-heading h1{text-transform:uppercase}
.tf-category-tiles{display:flex;flex-wrap:wrap;gap:14px 24px}
.tf-category-card{flex:1 1 calc((100% - 72px)/4);min-width:0;min-height:204px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:16px;padding:14px 12px 12px;text-align:center}
.tf-category-card img{display:block;width:180px;max-width:100%;height:150px;object-fit:contain}
.tf-category-card span{font-size:13px;line-height:1.3;font-weight:400;text-transform:uppercase}
/* A single tile in the last row keeps one column's width and stays on the left. */
@media(min-width:1024px){.tf-category-card:last-child:nth-child(4n + 1){flex-grow:0}}
@media(min-width:768px) and (max-width:1023px){.tf-category-card:last-child:nth-child(2n + 1){flex-grow:0}}
@media(max-width:1023px){.tf-category-tiles{gap:14px 16px}.tf-category-card{flex-basis:calc((100% - 16px)/2)}}
@media(max-width:767px){.tf-category-landing .tf-page-heading{margin:16px 0 20px}.tf-category-landing .tf-page-heading h1{font-size:26px;line-height:1.25}.tf-category-tiles{gap:12px}.tf-category-card{flex-basis:100%;min-height:155px;flex-direction:row;justify-content:flex-start;gap:18px;padding:15px 16px;text-align:left}.tf-category-card img{flex:0 0 120px;width:120px;height:120px}.tf-category-card span{font-size:14px;line-height:1.4}}
@media(max-width:359px){.tf-category-card{gap:12px;padding-inline:12px}.tf-category-card img{flex-basis:100px;width:100px}.tf-category-card span{font-size:13px}}

/* Баннер товара в категории «Приготовление еды» и её подкатегориях сохраняет исходные пропорции. */
.tf-catalog-page .tf-category-promotion{display:block;margin:0 0 24px}
.tf-catalog-page .tf-category-promotion picture,.tf-catalog-page .tf-category-promotion img{display:block;width:100%;height:auto}
.tf-catalog-page .tf-category-promotion:focus-visible{outline:2px solid var(--tf-red);outline-offset:4px}
