.shop-cats {
    --sc-brand: #2A4A11;
    --sc-ink: #253D4E;
    --sc-muted: #687182;
    --sc-line: #e6eaef;
    --sc-bg: #f7f8f9;
    padding: 28px 0 56px;
    background: var(--sc-bg);
}

.shop-cats__crumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    color: var(--sc-muted);
}

.shop-cats__crumb a {
    color: var(--sc-brand);
    font-weight: 600;
    text-decoration: none;
}

.shop-cats__crumb a:hover {
    text-decoration: underline;
}

.shop-cats__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
    align-items: end;
    gap: 20px 28px;
    margin-bottom: 14px;
}

.shop-cats__title {
    margin: 0 0 6px;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.15;
    color: var(--sc-ink);
}

.shop-cats__subtitle {
    margin: 0;
    max-width: 46ch;
    font-size: 15px;
    line-height: 1.55;
    color: var(--sc-muted);
}

.shop-cats__search {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid var(--sc-line);
    border-radius: 12px;
    background: #fff;
}

.shop-cats__search:focus-within {
    border-color: #3BB77E;
}

.shop-cats__search i {
    flex: 0 0 auto;
    color: #8b97a3;
    font-size: 16px;
}

.shop-cats__search input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 46px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: var(--sc-ink);
}

.shop-cats__search input:focus {
    outline: none;
}

.shop-cats__summary {
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sc-muted);
}

.shop-cats__summary strong {
    color: var(--sc-ink);
    font-weight: 800;
}

.shop-cats__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.shop-cat {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--sc-line);
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.shop-cat:hover {
    border-color: var(--sc-brand);
}

.shop-cat__card {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    text-decoration: none;
    color: inherit;
}

.shop-cat__card:hover {
    text-decoration: none;
    color: inherit;
}

.shop-cat__card:focus-visible,
.shop-cat__subs a:focus-visible {
    outline: 2px solid var(--sc-brand);
    outline-offset: -2px;
}

.shop-cat__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f4f6;
    border-bottom: 1px solid var(--sc-line);
}

.shop-cat__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.shop-cat:hover .shop-cat__img {
    transform: scale(1.04);
}

.shop-cat__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px 20px;
    flex: 1;
    background: #fff;
}

.shop-cat__name {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--sc-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.shop-cat:hover .shop-cat__name {
    color: var(--sc-brand);
}

.shop-cat__avatars {
    display: flex;
    align-items: center;
    min-height: 32px;
}

.shop-cat__avatar {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    overflow: hidden;
    margin-inline-start: calc(var(--sc-avatar-i, 0) * -10px);
    outline: 1px solid var(--sc-line);
    background: #eef2f0;
}

.shop-cat__avatar:first-child {
    margin-inline-start: 0;
}

.shop-cat__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-cat__avatar-overflow {
    margin-inline-start: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--sc-muted);
    white-space: nowrap;
}

.shop-cat__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--sc-brand);
    transition: gap 0.2s ease;
}

.shop-cat:hover .shop-cat__cta {
    gap: 10px;
}

.shop-cat__cta i {
    font-size: 14px;
    line-height: 1;
}

.shop-cat__subs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0 18px 16px;
    list-style: none;
}

.shop-cat__subs a {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f4f6f5;
    font-size: 12px;
    font-weight: 600;
    color: var(--sc-ink);
    text-decoration: none;
}

.shop-cat__subs a:hover,
.shop-cat__more {
    background: rgba(42, 74, 17, 0.08);
    color: var(--sc-brand);
}

.shop-cats__empty {
    margin: 8px 0 0;
    padding: 28px 16px;
    border: 1px dashed var(--sc-line);
    border-radius: 14px;
    background: #fff;
    text-align: center;
    font-size: 15px;
    color: var(--sc-muted);
}

@media (max-width: 1199px) {
    .shop-cats__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .shop-cats {
        padding: 18px 0 36px;
    }

    .shop-cats__head {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .shop-cats__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .shop-cat__body {
        padding: 14px 14px 16px;
        gap: 10px;
    }

    .shop-cat__name {
        font-size: 15px;
    }

    .shop-cat__avatar {
        width: 28px;
        height: 28px;
    }

    .shop-cat__avatar-overflow,
    .shop-cat__cta {
        font-size: 12px;
    }

    .shop-cat__subs {
        padding: 0 14px 14px;
    }
}

@media (max-width: 420px) {
    .shop-cats__grid {
        grid-template-columns: 1fr;
    }
}
