.category-products-page {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-products-page {
    font-family: 'Lato', sans-serif;
}
.category-products-page h1,
.category-products-page h2,
.category-products-page h3,
.category-products-page h4 {
    font-family: 'Sora', sans-serif;
    font-weight: 500;
}


.category-products-page .cpcat-hero {
    padding: 0;
    overflow: hidden;
    width: 100%;
}

.category-products-page .cpcat-hero__inner {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.category-products-page .cpcat-hero__inner--has-img {
    justify-content: space-between;
    min-height: 360px;
}

.category-products-page .cpcat-hero__text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.category-products-page .cpcat-hero__text .container {
    padding-top: 48px;
    padding-bottom: 48px;
    padding-left: 55px;
    padding-right: 50px;
}

.category-products-page .cpcat-hero__h1 {
    font-size: 40px;
    color: inherit;
    line-height: 1.2;
    margin-bottom: 16px;
    padding: 0;
}

.category-products-page .cpcat-desc-section .collapsible-description {
    max-height: 100px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
    max-width: 1062px;
}

.category-products-page .cpcat-desc-section .collapsible-description.expanded {
    max-height: 9999px;
}

.category-products-page .cpcat-desc-section .read-more-link {
    display: block;
    margin: 20px auto 0;
    color: #000;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.category-products-page .cpcat-desc-section .read-more-link:hover {
    color: #eb9435;
}


.category-products-page .cpcat-desc-section {
    padding: 40px 0;
}

.category-products-page .cpcat-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.category-products-page .cpcat-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
}




.category-products-page .cpcat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
    padding: 32px 0 80px;
}


.category-products-page .cpcat-sticky {
    position: sticky;
    top: 115px;
}


.category-products-page .cpcat-h1 {
    font-size: 36px;
    font-weight: 700;
    color: #004996;
    line-height: 1.2;
    margin-bottom: 16px;
    padding: 0;
}

.category-products-page .cpcat-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
}

.category-products-page .cpcat-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 16px;
}



.category-products-page .category-subcategory-tags {
    margin: 24px 0 8px;
}


.category-products-page .cpcat-products-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-products-page .cpcat-featured-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.category-products-page .cpcat-featured-block .category-popular {
    margin-bottom: 16px;
    margin-top: 0;
}

.category-products-page .cpcat-divider {
    height: 1px;
    background: #d0dce8;
    margin: 28px 0;
}


.category-products-page .cpcat-product-row {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid #dde6f0;
    border-radius: 16px;
    background: #fff;
    margin-bottom: 12px;
    transition: box-shadow .2s ease, border-color .2s ease;
    position: relative;
}

.category-products-page .cpcat-product-row:hover {
    box-shadow: 0 4px 16px rgba(0, 73, 150, .10);
    border-color: #b0c8e8;
}

.category-products-page .cpcat-product-row--featured {
    background: #f3f7f9;
    border-color: #b0c8e8;
}


.category-products-page .cpcat-product-img {
    display: block;
    width: 120px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.category-products-page .cpcat-product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.category-products-page .cpcat-product-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.category-products-page .cpcat-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.category-products-page .cpcat-promo-badge {
    display: inline-block;
    background-color: #FECC4E;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.category-products-page .cpcat-product-title {
    font-family: 'Sora';
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    transition: color .2s;
}

.category-products-page .cpcat-product-title:hover {
    color: #eb9435;
}

.category-products-page .cpcat-product-sklad {
    margin-top: 2px;
}


.category-products-page .cpcat-product-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    flex-shrink: 0;
    min-width: 160px;
}

.category-products-page .cpcat-product-price {
    font-family: 'Sora';
    font-size: 22px;
    font-weight: 400;
    color: #000;
    white-space: nowrap;
}



.category-products-page .cpcat-btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 28px;
    background: #004996;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s ease;
    border: none;
    cursor: pointer;
}

.category-products-page .cpcat-btn-buy:hover {
    background: #eb9435;
}

.category-products-page .cpcat-btn-sklad {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #004996;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
}

.category-products-page .cpcat-btn-sklad:hover {
    color: #eb9435;
}


.cpcat-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cpcat-popup-overlay.open { display: flex; }

.cpcat-popup {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 520px;
    width: calc(100% - 32px);
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
}

.cpcat-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e9f1f6 !important;
    border: none;
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    outline: none;
    box-shadow: none;
}
.cpcat-popup-close:hover,
.cpcat-popup-close:focus {
    background: #d0dce8 !important;
    color: #333;
    outline: none;
    box-shadow: none;
}

.cpcat-popup-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px;
    padding-right: 40px;
    line-height: 1.3;
}

.cpcat-popup-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 24px;
}

.cpcat-popup-list li {
    font-size: 14px;
    color: #2f2f2f;
    padding: 5px 0;
    border-bottom: 1px solid #d4e3ef;
}
.cpcat-popup-list li:last-child { border-bottom: none; }

.cpcat-popup-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cpcat-btn-sklad {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #004996;
    background: none;
    border: none !important;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color .2s;
}
.cpcat-btn-sklad:hover {
    background: none !important;
    border: none !important;
    color: #eb9435 !important;
    text-decoration: underline;
}

.cpcat-popup-actions .cpcat-btn-sklad {
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid #004996 !important;
    text-decoration: none;
    font-weight: 700;
}
.cpcat-popup-actions .cpcat-btn-sklad:hover {
    background: #FECC4E !important;
    color: #000 !important;
    border-color: #FECC4E !important;
    text-decoration: none;
}

.cpcat-btn-buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: #004996;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid #004996;
    transition: background .2s, border-color .2s;
}
.cpcat-btn-buy:hover {
    background: #FECC4E;
    border-color: #FECC4E;
    color: #000 !important;
}


@media (max-width: 1100px) {
    .category-products-page .cpcat-layout {
        grid-template-columns: 240px 1fr;
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .category-products-page .cpcat-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 16px 0 60px;
    }

    .category-products-page .cpcat-sidebar {
        margin-bottom: 24px;
    }

    .category-products-page .cpcat-sticky {
        position: static;
    }

    .category-products-page .cpcat-hero__image {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .category-products-page .cpcat-hero {
        border-radius: 0;
    }

    .category-products-page .cpcat-hero__inner {
        flex-direction: column;
        gap: 0;
        min-height: unset;
    }

    .category-products-page .cpcat-hero__text {
        padding: 0;
        width: 100%;
    }

    .category-products-page .cpcat-hero__text .container {
        padding: 28px 16px 24px;
    }

    .category-products-page .cpcat-hero__image {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 260px !important;
        border-radius: 0 !important;
        order: 2;
        align-self: auto;
    }

    .category-products-page .cpcat-hero__h1 {
        font-size: 26px;
    }

    .category-products-page .cpcat-h1 {
        font-size: 22px;
    }

    .category-products-page .cpcat-product-row {
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto;
        gap: 12px 14px;
        padding: 14px;
    }

    .category-products-page .cpcat-product-img {
        width: 90px;
        height: 80px;
        grid-row: 1 / 3;
    }

    .category-products-page .cpcat-product-main {
        grid-column: 2;
        grid-row: 1;
    }

    .category-products-page .cpcat-product-aside {
        grid-column: 2;
        grid-row: 2;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        min-width: 0;
        width: 100%;
    }

    .category-products-page .cpcat-product-title {
        font-size: 16px;
    }

    .category-products-page .cpcat-product-price b {
        font-size: 18px;
    }

    .category-products-page .cpcat-btn-buy {
        height: 38px;
        padding: 0 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .category-products-page .cpcat-product-row {
        grid-template-columns: 75px 1fr;
    }

    .category-products-page .cpcat-product-img {
        width: 75px;
        height: 70px;
    }
}


.category-products-page .cpcat-hero__desc {
    font-size: 16px;
    line-height: 1.6;
    color: inherit;
}

.category-products-page .cpcat-hero__desc p {
    font-size: 16px;
    line-height: 1.6;
    color: inherit;
    margin-bottom: 0;
}

.category-products-page .cpcat-hero__image {
    flex-shrink: 0;
    width: 45%;
    max-width: 600px;
    max-height: 410px;
    overflow: hidden;
    align-self: stretch;
    border-radius: 0 20px 20px 0;
}

.category-products-page .cpcat-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.category-products-page .cpcat-hero {
    border-radius: 20px;
}

.category-parent-name {

padding-bottom: 6px;
border-bottom: 2px solid #000000;
font-size: 1.5rem;
margin-bottom: 20px;
color:#000000;
font-family: 'Sora';
}


.category-products-page .cpcat-h1 {
    color: inherit;
}

.category-link {
text-decoration: none;
color: #000;
padding: 6px 10px;
display: block;
border-radius: 4px;
transition: background-color 0.2s ease, color 0.2s ease;
}

.category-link:hover {
background-color: #e0f2f1; 
color: #000; 
}

.category-products-page .cpcat-description h2 {
    color: inherit;
    font-size: 24px;
    margin: 24px 0 12px;
    padding: 0;
}


.category-products-page .category-popular,
.category-products-page .cpcat-featured-block .category-popular {
    color: #000;
    font-family: 'Sora';
    font-size: 1.5rem;
}

.category-products-page .cpcat-product-title {
    color: #000;
}

.category-products-page .cpcat-product-title:hover {
    color: #eb9435;
}


.category-subcategory-tags__list::-webkit-scrollbar {
    display: none;
}

.category-subcategory-tags__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid #000;
    border-radius: 20px;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.7em;
    transition: background-color 0.2s, color 0.2s;
}

.category-subcategory-tags__link:hover {
    background-color: #004996;
    color: #fff;
}

.category-subcategory-tags__icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    margin-right: 4px;
}

@media (min-width: 768px) {
    .category-subcategory-tags__list {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}