.category-page {
    width: 100%;
}

.category-breadcrumbs-section,
.category-hero-section,
.category-products-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.category-breadcrumbs-section {
    padding: 16px 0;
    background: #fff;
    border-bottom: 1px solid #e2e2ec;
}

.category-breadcrumbs-container,
.category-hero-container,
.category-products-container {
    width: 100%;
    max-width: var(--content-max-width);
    box-sizing: border-box;
}

.category-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #717188;
}

.category-back-link-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.category-back-link-icon::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 4px;
    width: 7px;
    height: 7px;
    border-left: 1.5px solid #717188;
    border-bottom: 1.5px solid #717188;
    transform: rotate(45deg);
}

.category-hero-section {
    padding: 48px 0;
    border-bottom: 1px solid #e2e2ec;
    background: #fff;
}

.category-hero-container h1 {
    margin: 0;
    font-family: var(--second-family);
    font-size: 36px;
    font-weight: 700;
    line-height: 45px;
    color: #151525;
    overflow-wrap: anywhere;
}

.category-hero-container p {
    margin: 12px 0 0;
    max-width: 672px;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #717188;
    overflow-wrap: anywhere;
}

.category-products-section {
    padding: 48px 0;
    background: #f6f6fa;
}

.category-products-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.category-search {
    position: relative;
    max-width: 384px;
    min-width: 0;
}

.category-search input {
    width: 100%;
    height: 39px;
    padding: 0 16px 0 40px;
    border-radius: 18px;
    border: 1px solid #e2e2ec;
    background: #fff;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    color: #151525;
    outline: none;
}

.category-search input::placeholder {
    color: #a0a0ba;
}

.category-search-icon {
    position: absolute;
    left: 14px;
    top: 12px;
    width: 14px;
    height: 14px;
    border: 1.3px solid #a0a0ba;
    border-radius: 50%;
}

.category-search-icon::after {
    content: "";
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 5px;
    height: 1.3px;
    background: #a0a0ba;
    transform: rotate(45deg);
    transform-origin: center;
}

.category-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 39px;
    padding: 0 20px;
    border: none;
    border-radius: 18px;
    background: #252691;
    color: #fff;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    position: relative;
    cursor: pointer;
}

.category-filter-icon {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    object-fit: contain;
}

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

.category-product-card {
    background: #fff;
    border: 1px solid #e2e2ec;
    border-radius: 16px;
    overflow: hidden;
    min-width: 0;
    display: block;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.category-product-card-media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    background: #f6f6fa;
    border-bottom: 1px solid #e2e2ec;
    box-sizing: border-box;
}

.category-product-card-media img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.category-product-card-content {
    padding: 20px;
    min-width: 0;
}

.category-product-sku {
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: #717188;
}

.category-product-card h2 {
    margin: 6px 0 0;
    font-family: var(--second-family);
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #151525;
    overflow-wrap: anywhere;
}

.category-product-card p {
    margin: 8px 0 10px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    color: #717188;
    overflow-wrap: anywhere;
}

.category-product-card:hover {
    background: #f3f3fb;
    border-color: #d8daf2;
}

.category-product-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    color: #252691;
}

.category-product-link::after {
    content: "";
    width: 16px;
    height: 16px;
    background: url("../images/home-about-description-right-button-item-1.svg") center/16px 16px no-repeat;
}

.category-products-empty {
    margin: 32px 0 0;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 24px;
    color: #717188;
    text-align: center;
}

.category-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.category-pagination[hidden] {
    display: none;
}

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

.category-pagination button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e2e2ec;
    border-radius: 50%;
    background: #fff;
    color: #151525;
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.category-pagination button:hover:not(:disabled),
.category-pagination-page.is-active {
    border-color: #252691;
    background: #252691;
    color: #fff;
}

.category-pagination button:focus-visible {
    outline: 3px solid rgba(37, 38, 145, 0.2);
    outline-offset: 2px;
}

.category-pagination button:disabled {
    opacity: 0.4;
    cursor: default;
}

.category-pagination-arrow span {
    display: block;
    font-size: 24px;
    line-height: 36px;
}

@media (max-width: 1000px) {
    .category-breadcrumbs-container,
    .category-hero-container,
    .category-products-container {
        padding-left: 24px;
        padding-right: 24px;
    }

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

@media (max-width: 700px) {
    .category-products-toolbar {
        flex-direction: row;
    }

    .category-search {
        max-width: none;
    }
}

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

@media (max-width: 480px) {
    .category-breadcrumbs-container,
    .category-hero-container,
    .category-products-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}