.category-page {
    padding: 2.1rem 0 3.75rem;
    background: radial-gradient(circle at top left, rgba(159, 42, 30, 0.2), transparent 32%), linear-gradient(180deg, #ffffff 0%, #f9f8f7 100%);
    color: #f5f1ec;
}

.category-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.9rem;
    color: #6f1613;
    font-size: 0.84rem;
}

    .category-breadcrumb a {
        color: #6f1613;
    }

.category-page-head {
    margin-bottom: 1.1rem;
}

    .category-page-head h1 {
        margin: 0;
        font-size: clamp(2rem, 4vw, 2.45rem);
        line-height: 1.02;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: #c9342b;
        background: linear-gradient(180deg, #f04a3d 0%, #c9342b 45%, #8f211c 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        /* text-shadow: 2px 2px 0 #5c1513, 4px 4px 0 #3b0f0e, 6px 6px 10px rgba(0, 0, 0, 0.75); */
        filter: contrast(1.15);
        line-height: 45px;
    }

    .category-page-head p {
        margin: 0.55rem 0 0;
        color: #000;
        font-size: 0.97rem;
    }

.category-toolbar {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.35rem;
}

    .category-toolbar select,
    .category-toolbar-button {
        min-height: 44px;
        padding: 0 0.95rem;
        border-radius: 10px;
        border: 1px solid rgb(107 17 17 / 14%);
        background: #fff;
        color: #000;
        font-size: 0.93rem;
    }

    .category-toolbar select {
        min-width: 0;
        width: 100%;
        /* box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); */
    }

.category-toolbar-button,
.category-apply-button {
    background: linear-gradient(180deg, #f04a3d 0%, #c9342b 45%, #8f211c 100%);
    border: 0;
    color: #fff8f4;
    font-weight: 700;
}

.category-toolbar-button {
    flex: 0 0 auto;
    white-space: nowrap;
    width: auto;
}

.category-toolbar-button,
.category-apply-button,
.category-sidebar-box h3,
.category-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.78fr) 300px;
    gap: 1.45rem;
    align-items: start;
}

.category-results {
    display: grid;
    gap: 0.9rem;
}

.category-card,
.category-sidebar-box,
.category-empty {
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: radial-gradient(circle at center top, rgba(116, 18, 18, 0.12), transparent 52%), linear-gradient(180deg, #190404 0%, #0f0202 100%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.category-card {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1rem;
    padding: 0.78rem;
    border-radius: 10px;
}

.category-card-image {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #0f1117;
}

    .category-card-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
    }

.category-card-body {
    min-width: 0;
}

.category-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
}

.category-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 800;
}

    .category-card h2 a {
        color: #fff8f2;
    }

.category-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

    .category-card-tags span {
        display: inline-flex;
        align-items: center;
        min-height: 24px;
        padding: 0 0.55rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 245, 239, 0.78);
        font-size: 0.76rem;
        font-weight: 600;
    }

.category-card-favorite {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 244, 238, 0.86);
    flex: 0 0 auto;
}

    .category-card-favorite i {
        font-size: 0.98rem;
    }

.category-card-summary {
    margin: 0.8rem 0 0.75rem;
    color: rgba(255, 244, 238, 0.75);
    font-size: 0.93rem;
    line-height: 1.6;
}

.category-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    color: rgba(255, 248, 244, 0.72);
    font-size: 0.82rem;
}

    .category-card-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
    }

.category-sidebar-box {
    padding: 1.2rem 1rem 1rem;
    border-radius: 16px;
    position: sticky;
    top: 1rem;
}

    .category-sidebar-box h3 {
        margin: 0 0 1rem;
        font-size: 1.06rem;
        font-weight: 800;
        text-transform: uppercase;
        justify-content: flex-start;
    }

.category-sidebar-form {
    display: grid;
    gap: 1rem;
}

    .category-sidebar-form section + section {
        padding-top: 0.95rem;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

.category-sidebar-title {
    margin-bottom: 0.75rem;
    color: rgba(255, 247, 243, 0.88);
    font-size: 0.9rem;
    font-weight: 700;
}

.category-checklist {
    display: grid;
    gap: 0.65rem;
}

    .category-checklist label {
        display: grid;
        grid-template-columns: 16px minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.6rem;
        color: rgba(255, 243, 237, 0.74);
        font-size: 0.88rem;
        cursor: pointer;
    }

    .category-checklist input {
        margin: 0;
        accent-color: #d54433;
    }

.category-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.25rem;
}

    .category-pagination a {
        min-width: 42px;
        height: 42px;
        padding: 0 0.9rem;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: #141821;
        color: rgba(255, 247, 242, 0.78);
        font-weight: 700;
    }

        .category-pagination a.is-active {
            background: linear-gradient(180deg, #d74533 0%, #bb3526 100%);
            border-color: transparent;
            color: #fff;
        }

        .category-pagination a.is-disabled {
            opacity: 0.35;
            pointer-events: none;
        }

.category-checklist small {
    color: rgba(255, 244, 238, 0.5);
    font-size: 0.76rem;
}

.category-apply-button {
    min-height: 46px;
    border-radius: 10px;
    font-size: 0.94rem;
}

.category-empty {
    padding: 2rem;
    border-radius: 18px;
    text-align: center;
}

    .category-empty h2 {
        margin: 0 0 0.55rem;
        font-size: 1.25rem;
    }

    .category-empty p {
        margin: 0;
        color: rgba(255, 244, 238, 0.72);
    }

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

    .category-sidebar-box {
        position: static;
    }
}

@media (max-width: 767px) {
    .category-page {
        padding-top: 1.5rem;
    }

    .category-toolbar {
        display: grid;
        grid-template-columns: 1fr;
    }

        .category-toolbar select,
        .category-toolbar-button {
            width: 100%;
        }

    .category-card {
        grid-template-columns: 1fr;
    }

    .category-card-image img {
        height: 190px;
    }
}
