.category-page-shell {
    min-height: 100%;
    background:
        radial-gradient(circle at 0 0, rgba(39, 174, 96, 0.12), transparent 27rem),
        radial-gradient(circle at 100% 8%, rgba(245, 166, 35, 0.10), transparent 23rem),
        #f7faf8;
    color: #18251d;
}

.category-page-container {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
    padding: 28px 0 52px;
}

.category-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: #6b7c70;
    font-size: 13px;
}

.category-breadcrumb a {
    color: #16874c;
    font-weight: 700;
    text-decoration: none;
}

.category-breadcrumb a:hover {
    text-decoration: underline;
}

.category-page-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 28px;
    overflow: hidden;
    margin-bottom: 26px;
    padding: 34px;
    border: 1px solid rgba(24, 135, 76, 0.15);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(240, 251, 245, 0.94));
    box-shadow: 0 18px 50px rgba(23, 84, 48, 0.10);
}

.category-page-hero-glow {
    position: absolute;
    top: -150px;
    right: -100px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: var(--category-accent, #27ae60);
    filter: blur(75px);
    opacity: 0.17;
    pointer-events: none;
}

.category-page-hero-main,
.category-page-hero-stats {
    position: relative;
    z-index: 1;
}

.category-page-icon {
    display: grid;
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 22px;
    background: linear-gradient(
        145deg,
        var(--category-accent, #27ae60),
        #176b3d
    );
    color: #fff;
    font-size: 32px;
    box-shadow: 0 14px 24px rgba(31, 132, 77, 0.26);
}

.category-page-kicker,
.category-panel-eyebrow {
    display: inline-flex;
    margin-bottom: 9px;
    color: #17884e;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.category-page-title {
    margin: 0;
    color: #15281c;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.00em;
}

.category-page-description {
    max-width: 680px;
    margin: 15px 0 19px;
    color: #5f7266;
    font-size: 16px;
    line-height: 1.65;
}

.category-page-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.category-page-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 9px 12px;
    border: 1px solid #d9eee1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: #50705c;
    font-size: 13px;
}

.category-page-pill strong {
    color: #176b3d;
}

.category-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 22px;
}

.category-page-primary-btn,
.category-page-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.category-page-primary-btn {
    background: linear-gradient(135deg, #138446, #28b967);
    color: #fff;
    box-shadow: 0 10px 20px rgba(28, 153, 80, 0.24);
}

.category-page-secondary-btn {
    border: 1px solid #d6e8dc;
    background: #fff;
    color: #176b3d;
}

.category-page-primary-btn:hover,
.category-page-secondary-btn:hover {
    transform: translateY(-2px);
}

.category-page-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-content: center;
}

.category-hero-stat-card {
    min-height: 126px;
    padding: 17px;
    border: 1px solid rgba(38, 135, 77, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 24px rgba(23, 84, 48, 0.06);
}

.category-hero-stat-icon {
    display: block;
    margin-bottom: 13px;
    font-size: 19px;
}

.category-hero-stat-card strong {
    display: block;
    color: #173a24;
    font-size: 26px;
    font-weight: 800;
}

.category-hero-stat-card small {
    display: block;
    margin-top: 5px;
    color: #7d8d82;
    font-size: 11px;
}

.category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
}

.category-main-column,
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.category-panel,
.category-sidebar-panel {
    border: 1px solid rgba(31, 91, 54, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 9px 27px rgba(14, 67, 37, 0.06);
}

.category-panel {
    padding: 23px;
}

.category-sidebar-panel {
    padding: 19px;
}

.category-panel-heading,
.category-sidebar-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.category-panel-heading h2,
.category-sidebar-heading h3 {
    margin: 0;
    color: #193324;
    font-size: 22px;
    letter-spacing: 0.00em;
}

.category-result-count {
    flex: 0 0 auto;
    padding: 7px 10px;
    border-radius: 999px;
    background: #ebf8ef;
    color: #197b42;
    font-size: 11px;
    font-weight: 800;
}

.category-filters {
    display: grid;
    grid-template-columns: minmax(210px, 1.35fr) repeat(3, minmax(130px, 0.65fr));
    gap: 10px;
}

.category-filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid #d9e7de;
    border-radius: 12px;
    background: #fbfefc;
}

.category-filter-search input,
.category-filters select {
    min-height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #294335;
    font: inherit;
    font-size: 13.5px;
}

.category-filter-search input {
    width: 100%;
}

.category-filters select {
    width: 100%;
    padding: 0 12px;
    border: 1px solid #d9e7de;
    border-radius: 12px;
    background: #fbfefc;
    cursor: pointer;
}

.category-filter-search:focus-within,
.category-filters select:focus {
    border-color: #33aa67;
    box-shadow: 0 0 0 3px rgba(51, 170, 103, 0.12);
}

.category-subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.category-subcategory-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e0ece4;
    border-radius: 15px;
    background: #fcfffd;
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.category-subcategory-card:hover {
    transform: translateY(-2px);
    border-color: #76cf9d;
}

.category-subcategory-icon,
.category-related-icon {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #b6cabf, #c1b8ce);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
}

.category-subcategory-copy,
.category-related-copy,
.category-trending-copy {
    min-width: 0;
}

.category-subcategory-copy strong,
.category-related-copy strong,
.category-trending-copy strong {
    display: block;
    overflow: hidden;
    color: #284032;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-subcategory-copy small,
.category-related-copy small,
.category-trending-copy small {
    display: block;
    margin-top: 3px;
    color: #7b9182;
    font-size: 11px;
}

.category-subcategory-arrow {
    margin-left: auto;
    color: #2aa25c;
    font-weight: 800;
}

.category-inline-link {
    color: #198847;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.category-software-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.category-software-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 218px;
    padding: 17px;
    border: 1px solid #e0ece4;
    border-radius: 18px;
    background:
        linear-gradient(145deg, #ffffff, #fbfffc);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-software-card:hover {
    transform: translateY(-4px);
    border-color: #8bd6aa;
    box-shadow: 0 18px 28px rgba(20, 112, 60, 0.11);
}

.category-software-top {
    position: relative;
    display: flex;
    gap: 12px;
    min-width: 0;
}

.category-software-icon {
    display: grid;
    flex: 0 0 auto;
    width: 55px;
    height: 55px;
    overflow: hidden;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(145deg, #f0e3df, #cac0da);
    color: #176b3d;
    font-size: 20px;
    font-weight: 800;
    transition: all .25s ease
}

.category-software-icon img {
    width: 33px;
    height: 33px;
    object-fit: cover;
}

.category-software-copy {
    min-width: 0;
    padding-right: 42px;
}

.category-software-copy h3 {
    overflow: hidden;
    margin: 0;
    color: #1d3c2a;
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.category-software-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 0;
    color: #708075;
    font-size: 14px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.category-pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 5px 7px;
    border-radius: 7px;
    background: #eaf7ef;
    color: #177e43;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.category-pricing-paid,
.category-pricing-single,
.category-pricing-singleprice {
    background: #fff4df;
    color: #b46903;
}

.category-pricing-subscription {
    background: #eaf1ff;
    color: #3367c9;
}

.category-pricing-freemium {
    background: #f2ecff;
    color: #7a4cc4;
}

.category-software-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 15px;
}

.category-software-meta span {
    padding: 5px 8px;
    border-radius: 8px;
    background: #f3faf5;
    color: #5a8067;
    font-size: 12px;
    font-weight: 700;
}

.category-software-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    margin-top: 13px;
    padding-top: 12px;
    border-top: 1px solid #edf2ee;
    color: #799083;
    font-size: 11px;
}

.category-software-open {
    color: #16854a;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

.category-sidebar-heading > span {
    display: grid;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #eaf8ef;
    font-size: 18px;
}

.category-sidebar-heading {
    justify-content: flex-start;
}

.category-sidebar-heading p {
    margin: 3px 0 0;
    color: #7b9182;
    font-size: 11.5px;
}

.category-trending-list,
.category-related-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.category-trending-item,
.category-related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e3ede6;
    border-radius: 13px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.category-trending-item:hover,
.category-related-item:hover {
    transform: translateX(3px);
    background: #f3fbf6;
}

.category-trending-rank {
    display: grid;
    flex: 0 0 auto;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #28ad62, #16723c);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.category-trending-arrow {
    margin-left: auto;
    color: #329e5e;
    font-weight: 900;
}



.category-sidebar-empty {
    margin: 0;
    padding: 13px;
    border: 1px dashed #d7e7dc;
    border-radius: 12px;
    color: #769080;
    font-size: 12px;
    line-height: 1.5;
}

.category-empty-state {
    padding: 46px 20px;
    border: 1px dashed #cae4d2;
    border-radius: 16px;
    background: #f9fffb;
    text-align: center;
}

.category-empty-state > span {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: #e8f8ed;
    color: #1a8849;
    font-size: 25px;
}

.category-empty-state h3 {
    margin: 14px 0 6px;
    color: #24412d;
}

.category-empty-state p {
    margin: 0;
    color: #75877a;
    font-size: 13px;
}

.category-empty-state a {
    display: inline-flex;
    margin-top: 17px;
    color: #177e43;
    font-size: 13px;
    font-weight: 800;
}

.category-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
}

.category-pagination a,
.category-pagination span {
    display: inline-grid;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    place-items: center;
    border-radius: 10px;
    color: #56705f;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.category-pagination a {
    border: 1px solid #d9e8de;
    background: #fff;
}

.category-pagination a:hover,
.category-pagination a.is-active {
    border-color: #258e50;
    background: #258e50;
    color: #fff;
}

@media (max-width: 1100px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .category-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .category-page-hero {
        grid-template-columns: 1fr;
    }

    .category-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-filter-search {
        grid-column: 1 / -1;
    }

    .category-subcategory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .category-page-container {
        width: min(100% - 26px, 1380px);
        padding-top: 18px;
    }

    .category-page-hero,
    .category-panel {
        padding: 19px;
        border-radius: 18px;
    }

    .category-page-title {
        font-size: 33px;
    }

    .category-page-hero-stats,
    .category-sidebar,
    .category-filters,
    .category-subcategory-grid,
    .category-software-grid {
        grid-template-columns: 1fr;
    }

    .category-filter-search {
        grid-column: auto;
    }

    .category-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}