/* Основной контейнер категории */
/* Общие стили (аналогичные прошлым) */
.category-page {
    display: flex;
    flex-direction: column;

}

.category-page__title {
    text-align: left;
    font-size: 2.0em;
    color: #414141;
    background-color: white;
    border-radius: 7px;
    padding: 10px;
}

.category-page__fp{
    display: flex;
    flex-direction: row;
}

/* Фильтры */
.category-page__filters {
    /*max-height: 2000px;*/
    /*overflow: scroll;*/

    display: flex;
    max-width: 300px;
    margin-bottom: 40px;
    padding: 20px;

    /*border: 1px solid #e0e0e0;*/
    border-radius: 8px;
    margin-right: 20px;

    background-color: white;
    flex-direction: column;
    gap: 10px;
}


.category-page__filters-title {
    font-size: 1.2em;
    margin-bottom: 15px;
    color: #34495e;
}

.category-page__filter-group {
    margin-bottom: 20px;
}

.category-page__filter-checkbox {
    margin-right: 10px;
}

.category-page__filter-label {
    display: flex;
    font-size: 1em;
    margin-right: 15px;
}

/* Кнопка применения фильтров */
.category-page__apply-button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s;
}

.category-page__apply-button:hover {
    background-color: #2980b9;
}

/* Продукты */
.category-page__products {
    /*width: 1400px;*/
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    height: fit-content;
    /*margin: 0 20px 20px 20px;*/
}

.category-page__product-item {
    width: 200px;
    /*height: 330px;*/
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background-color: #ffffff;
    /*overflow: hidden;*/
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.category-page__product-item:hover {
    transform: scale(1.03);
}

.category-page__product-image {
    /*width: 100%;*/
    height: 180px;
    /*object-fit: cover;*/
    object-fit: cover;
    border-radius: 7px;
    /*background-color: #f0f0f0;*/
}

.category-page__product-title {
    font-size: 14px;
    margin: 15px;
    color: #2c3e50;
    height: 66.6px;
}

.category-page__product-price {
    font-size: 17px;
    margin: 0 15px 5px;
    color: var(--orange-color-light);
    font-weight: bold;
    text-align: center;
}

.category-page__no-products {
    display: flex;
    text-align: center;
    color: #2c2c2c;
    font-size: 16px;
    margin: 20px;
}


.category-page__product-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.category-page__product-link:hover .category-page__product-title {
    /*text-decoration: underline;*/
    /*color: #1e252c;*/
}



.category-page__filter-group {
    margin-bottom: 20px;
}

.category-page__filters-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-page__filter-label {
    display: block;
    margin-bottom: 5px;
}

.category-page__filter-checkbox:disabled + label {
    color: #999;
    cursor: not-allowed;
}

.category-page__filter-disabled {
    color: #bbb;
    font-style: italic;
    margin-left: 15px;
}


/* Контейнер фильтров */
.category-page__filters-container {
    width: 300px;
    border-radius: 5px;
    /*max-width: 300px; !* Ограничение ширины для фильтров *!*/
    flex-shrink: 0; /* Фильтры не растягиваются */
}


/* Блок значений с прокруткой */
.category-page__filter-values--scrollable {
    max-height: max-content; /* Ограничение высоты */
    overflow-y: auto;
    /*padding-right: 10px;*/
}

/* Контейнер продуктов */
.category-page__products-container {
    flex-grow: 1; /* Продукты занимают оставшееся пространство */
    margin-left: 20px; /* Отступ между фильтрами и продуктами */
    margin-right: 20px;
}










.category-page__pagination{
    font-size: 20px;
    margin-top: 50px;
    margin-bottom: 100px;
}

.svg-pagination{
    width: 25px;
}

.relative {
    display: flex;
    gap: 15px;
}
.relative a {
    color: #eb5b28;
}










.pagination {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    gap: 15px;
}

.pagination li {
    margin: 0 5px;
}

.pagination a, .pagination span {
    padding: 5px 10px;
    text-decoration: none;
    /*border: 1px solid #ddd;*/
    border-radius: 7px;
    color: black;
}

.pagination .active span {
    background-color: #eb5b28;
    color: #fff;
    border-color: #eb5b28;
}

.pagination .disabled span {
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
}


.category-page-related-mob{
    display: none;
}

.category-page__related-categories {
    margin-bottom: 20px;
}



.category-related-name {

    margin: 10px;
}

.category-page__categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.category-page__category-item {
    background-color: white;
    width: 200px;
    /*flex: 1 1 calc(25% - 15px);*/
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 7px;
    /*padding: 10px;*/

}

.category-page__category-image {
    width: 125px;
    height: 75px;
    border-radius: 7px;
    object-fit: cover;
    /*margin-bottom: 10px;*/
}

.category-page__category-title{
    font-size: 15px;
    color: var(--gray-title-name);
    margin-block-start: 0;
    margin-block-end: 0;
    padding: 2px;
}


.category-breadcrumbs {
    font-size: 15px;
    color: #666;
    background-color: white;
    border-radius: 7px;
    padding: 10px;
}

.category-breadcrumbs__list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.category-breadcrumbs__item {
    display: flex;
    align-items: center;
}

.category-breadcrumbs__link {
    text-decoration: none;
    color: #0670eb;
}

.category-breadcrumbs__link:hover {
    text-decoration: underline;
}

.category-breadcrumbs__current {
    /*font-weight: bold;*/
    color: #a4a4a4;
}

.category-breadcrumbs__separator {
    margin: 0 5px;
    color: #999;
}


.carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    /*align-items: center;*/
    flex-direction: column;
}

.carousel-track-container {
    overflow: hidden;
    flex-grow: 1;
}

.carousel-track {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    transition: transform 0.3s ease-in-out;
}

.carousel-item {
    /*max-width: 280px !important;*/
    max-width: fit-content;
    padding: 5px;
    text-align: left;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
    flex-shrink: 0;
}

.carousel-button {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prev {
    margin-right: 10px;
}

.next {
    margin-left: 10px;
}











.category-page__subcategories {
    margin-bottom: 20px;
}

.category-page__subcategories-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.category-page__subcategories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.category-page__subcategory-item {
    text-align: center;
    width: 150px;
}

.category-page__subcategory-link {
    text-decoration: none;
    color: inherit;
}

.category-page__subcategory-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.category-page__subcategory-name {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
}



@media (max-width: 1600px) {
    .category-breadcrumbs{
        margin: 0 10px;
    }
    .category-page__related-categories{
        margin: 0 10px 20px 10px;
    }
}


@media (max-width: 975px) {
    .category-page-related-mob{
        display: flex;
    }


    .category-page__filters-container{
        display: none;
    }

    .carousel-item {
        /*max-width: 280px !important;*/
        max-width: fit-content;
        padding: 5px;
        text-align: left;
        border: 1px solid #ddd;
        border-radius: 5px;
        background-color: white;
        flex-shrink: 0;
    }

}

@media (max-width: 650px) {
    .category-page__category-title{
       font-size: 16px;
    }
}

@media (max-width: 500px) {
    .category-page__product-title {
        font-size: 12px;
    }
    .category-page__product-price {
        font-size: 14px;
    }
}

@media (max-width: 455px) {

.category-page__product-item{
    width: 180px;
}

}

@media (max-width: 415px) {

    .category-page__product-item{
        width: 165px;
    }

}

@media (max-width: 385px) {

    .category-page__product-item{
        width: 155px;
    }

}

@media (max-width: 365px) {

    .category-page__product-item{
        width: 145px;
    }

}

.filter-button{
  display: none;
}


body.modal-open {
    overflow: hidden;
}

.filter-modal {
    display: none;
    position: fixed;
    top: 0;
    /*left: 0;*/
    width: 100%;
    height: 100%;
    background: rgba(98, 95, 95, 0.7);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.filter-modal-content {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    height: auto; /* Ограничиваем высоту */
    overflow-y: auto; /* Разрешаем прокрутку внутри */
    margin-top: 200px;
}

/* Кнопка закрытия */
.close-button {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
}



/* Кнопка для открытия фильтров */
.psc-filters-button {
    display: none;
    position: fixed;
    bottom: 75px;
    right: 20px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f47f1e, var(--orange-color-light));
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 9000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.psc-filters-button:hover {
    background: linear-gradient(135deg, #f47f1e, var(--orange-color-light));
}

@media (max-width: 975px) {
    .psc-filters-button {
        display: block;
    }
}

/* Модальное окно */
.psc-filters-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

/* Контент модального окна */
.psc-filters-modal__content {
    background: #ffffff;
    width: 90%;
    height: 80%;
    max-width: 420px;
    padding: 25px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
    animation: psc-slide-in 0.3s ease-out;
}

/* Анимация появления */
@keyframes psc-slide-in {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Кнопка закрытия */
.psc-filters-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 34px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.psc-filters-modal__close:hover {
    color: #007bff;
}

/* Заголовок в модальном окне */
.psc-filters-modal__title {
    font-size: 22px;
    color: #222;
    text-align: center;
    margin-bottom: 15px;
}

/* Контейнер для фильтров */
#psc-filters-container {
    max-height: 90%;
    overflow-y: auto;
    padding-right: 10px;
}

.category-page__product-item.in-cart {
    border: 2px solid #2ecc71; /* зелёная обводка */
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.4); /* необязательно, для красоты */
    border-radius: 6px;
}

.product-in-cart {
    background-color: #5ecb48 !important;
}
.product-in-cart-quantity{
    font-size: 16px;
    color: #2d891a;
    font-weight: bold;
    cursor: pointer;
}

.cart-actions-tooltip button {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 6px 10px;
    margin-bottom: 5px;
    font-size: 14px;
    background-color: #f44f2c !important;
    color: white !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}


.product-in-cart-quantity-wrapper {
    position: relative;
    display: inline-block;
}

.cart-actions-tooltip {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px;
    z-index: 9999;
}

.product-in-cart-quantity-wrapper:hover .cart-actions-tooltip {
    display: block;
}

