/* Compact category artwork with a separate mobile layout. */
.tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-list .category-list__item {
    padding: 4px 8px !important;
    gap: 4px;
}
.tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-media {
    flex: 0 0 78px;
    height: 78px;
    aspect-ratio: auto;
}
@media (min-width: 768px) {
    .tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-list {
        gap: 10px !important;
    }
    .tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-list > .gridcat {
        flex: 0 1 180px;
        width: 180px !important;
        max-width: 180px;
        min-width: 0;
    }
    .tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-list .category-list__item {
        min-height: 160px !important;
        justify-content: center;
        padding: 2px 8px !important;
    }
    .tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-media {
        flex-basis: 112px;
        height: 112px;
    }
    .tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-name {
        min-height: 0;
    }
}

/* Keep mobile cards close to their artwork; leave room for readable full names. */
@media (max-width: 767px) {
    .tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-list {
        gap: 6px !important;
    }
    .tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-list > .gridcat {
        flex: 0 0 calc((100% - 6px) / 2);
        width: calc((100% - 6px) / 2) !important;
        max-width: none;
        min-width: 0;
    }
    .tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-list .category-list__item {
        min-height: 0 !important;
        padding: 4px 6px !important;
        gap: 3px;
        justify-content: center;
    }
    .tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-name {
        flex: none;
        min-height: 0;
        max-width: 100%;
        font-size: 12px;
        line-height: 1.3;
    }
}
@media (min-width: 420px) and (max-width: 767px) {
    .tk-store .tk-category-page .tk28-category-choice:not(.tk38-compact-categories) .tk23-category-list > .gridcat {
        flex-basis: calc((100% - 12px) / 3);
        width: calc((100% - 12px) / 3) !important;
    }
}

/* Native category disclosure must grow beyond the theme's 150px excerpt. */
.tk-store .tk-category-page .category-info-bottom > .category-page.category-info {
    height: auto !important;
    max-height: none !important;
    overflow: visible;
}
