.pb-catalog-ux {
    margin: 0 0 28px;
    color: #283d30;
    font: inherit;
}

.pb-catalog-ux .pb-catalog-ux__intro {
    max-width: 850px;
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.65;
}

.pb-catalog-ux .pb-catalog-ux__heading {
    margin: 0 0 12px;
    font: inherit;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
}

.pb-catalog-ux .pb-catalog-ux__links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.pb-catalog-ux .pb-catalog-ux__link {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 92px;
    min-width: 0;
    box-sizing: border-box;
    padding: 17px;
    border: 1px solid #cbded1;
    border-radius: 16px;
    background: #ffffff;
    color: #283d30;
    text-decoration: none;
    font: inherit;
    transition: border-color 150ms ease, background-color 150ms ease;
}

.pb-catalog-ux .pb-catalog-ux__link:hover {
    border-color: #568565;
    background: #f2f8f4;
    color: #283d30;
}

.pb-catalog-ux .pb-catalog-ux__link:focus-visible {
    outline-offset: 4px;
}

.pb-catalog-ux .pb-catalog-ux__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #eaf3ed;
    color: #356c4d;
    font-size: 20px;
    line-height: 1;
}

.pb-catalog-ux .pb-catalog-ux__copy {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.pb-catalog-ux .pb-catalog-ux__copy strong {
    display: block;
    color: #283d30;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.pb-catalog-ux .pb-catalog-ux__count {
    display: inline-block;
    min-width: 1.35em;
    box-sizing: border-box;
    margin-inline-start: 0.25em;
    padding: 1px 6px;
    border-radius: 999px;
    background: #eaf3ed;
    color: #356c4d;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
    white-space: nowrap;
}

.pb-catalog-ux .pb-catalog-ux__copy small {
    display: block;
    margin-top: 4px;
    color: #4e6255;
    font-size: 0.875rem;
    line-height: 1.45;
}

/* Main navigation can wrap beneath the compact category cards. */
body.tax-product_cat.term-koshkam .pb-nav-katalog,
body.tax-product_cat.term-sobakam:has(.pb-catalog-ux--compact) .pb-nav-katalog {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: var(--pb-shirina, var(--wp--style--global--wide-size, 100%)) !important;
}

body.tax-product_cat.term-koshkam .pb-nav-katalog > .pb-nav-ryad:first-child,
body.tax-product_cat.term-koshkam .pb-nav-katalog > .pb-nav-vtoroy,
body.tax-product_cat.term-sobakam:has(.pb-catalog-ux--compact) .pb-nav-katalog > .pb-nav-ryad:first-child,
body.tax-product_cat.term-sobakam:has(.pb-catalog-ux--compact) .pb-nav-katalog > .pb-nav-vtoroy {
    display: contents;
}

body.tax-product_cat.term-koshkam .pb-nav-katalog > .pb-nav-klassy,
body.tax-product_cat.term-sobakam:has(.pb-catalog-ux--compact) .pb-nav-katalog > .pb-nav-klassy {
    flex: 0 0 100%;
    justify-content: center;
    margin-top: 0;
}

.pb-catalog-ux--compact {
    margin-bottom: 16px;
}

.pb-catalog-ux--compact .pb-catalog-ux__intro {
    margin-bottom: 12px;
}

.pb-catalog-ux--compact .pb-catalog-ux__heading {
    margin-bottom: 8px;
}

.pb-catalog-ux--compact .pb-catalog-ux__links {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    gap: 10px;
}

.pb-catalog-ux--compact .pb-catalog-ux__link {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 88px;
    padding: 10px 12px;
    border-radius: 14px;
}

.pb-catalog-ux--compact .pb-catalog-ux__icon {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.pb-catalog-ux--compact .pb-catalog-ux__icon svg {
    width: 20px;
    height: 20px;
}

.pb-catalog-ux--compact .pb-catalog-ux__copy {
    overflow-wrap: break-word;
    width: 100%;
}

.pb-catalog-ux--compact .pb-catalog-ux__copy strong {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.pb-catalog-ux--compact .pb-catalog-ux__count {
    position: absolute;
    top: 14px;
    right: 12px;
    margin: 0;
}

.pb-catalog-ux--compact .pb-catalog-ux__copy small {
    margin-top: 3px;
    padding-right: 18px;
    font-size: 0.8rem;
    line-height: 1.3;
}

.pb-catalog-ux--compact .pb-catalog-ux__link > :last-child {
    position: absolute;
    right: 12px;
    bottom: 9px;
}

@media (min-width: 960px) {
    body.tax-product_cat.term-koshkam:has(.pb-catalog-ux--compact) .pb-nav-katalog > .pb-nav-klassy,
    body.tax-product_cat.term-sobakam:has(.pb-catalog-ux--compact) .pb-nav-katalog > .pb-nav-klassy {
        flex: 0 0 auto;
        margin-inline-start: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pb-catalog-ux .pb-catalog-ux__link {
        transition: none;
    }
}
