.breadcrumb {
    margin-top: 20px;
}

.breadcrumb-item a,
.breadcrumb-item + .breadcrumb-item::before {
    color: black;
}

.breadcrumb-item.active {
    color: var(--mainColor);
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    width: 65%;
    height: 25px;
    overflow: hidden;
}

.catalog-section {
    padding: 40px 0;
}

.catalog-section h1 {
    margin-bottom: 40px;
    font-size: 36px;
}

.filter-sidebar {
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.filter-item {
    margin-bottom: 20px;
}

.filter-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

.filter-item input[type="range"],
.filter-box input[type="range"] {
    width: 100%;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-item .btn {
    width: 100%;
    padding: 10px;
}

.filter-box h5 {
    margin-bottom: 10px;
}

.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sort-bar select {
    max-width: 200px;
}

.sort-bar .input-box {
    margin: 0;
}

.sort-bar .input-box input {
    border: 2px solid #eee;
    color: black;
    padding: 7px 30px;
    border-radius: 20px;
    z-index: 2;
    font-weight: 400;
    line-height: 16px;
}

.sort-bar .input-box svg {
    position: absolute;
    z-index: 9;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    cursor: pointer;
}


.product-list .col-md-6 {
    padding-bottom: 30px;
}

.select-box {
    position: relative;
    display: block;
    width: 100%;
    margin: 0 auto;
}

.select-box__current {
    position: relative;
    cursor: pointer;
    outline: none;
}

.select-box__current:focus + .select-box__list {
    opacity: 1;
    -webkit-animation-name: none;
    animation-name: none;
}

.select-box__current:focus + .select-box__list .select-box__option {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    color: black;
    text-decoration: none;
}

.select-box__option:before {
    content: "";
    position: absolute;
    width: calc(100% - 65px);
    height: 1px;
    background: #eee;
    right: 0;
    bottom: 0;
}

.select-box__current:focus .select-box__icon {
    transform: translateY(-50%) rotate(180deg);
}

.select-box__icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 20px;
    transition: 0.2s ease;
}

.select-box__value {
    display: flex;
}

.select-box__input {
    display: none;
}

.select-box__input:checked + .select-box__input-text {
    display: block;
}

.select-box__current:focus .select-box__input-text {
    border-radius: 20px 20px 0 0;
}

.select-box__current:focus #sortSelect {
    border-radius: 20px;
}

.select-box__input-text {
    width: 100%;
    margin: 0;
    padding: 10px 15px;
    border: 2px solid #eee;
    border-radius: 20px;
    line-height: 16px;
}

.sort-bar .select-box {
    display: flex;
    align-items: center;
    width: fit-content;
    padding-right: 10px;
    margin: 0;
    margin-left: auto;
    gap: 10px;
}

.sort-bar .select-box__input-text {
    padding: 10px 40px 10px 5px;
    display: block;
    width: 100%;
    min-width: 100%;
    font-size: 16px;
    line-height: 16px;
    border: 2px solid #eeeeee;
    border-radius: 20px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSI4IiB2aWV3Qm94PSIwIDAgMTQgOCIgZmlsbD0ibm9uZSI+PHBhdGggZD0iTTEgMUMxIDEgNi41IDcgNyA3QzcuNSA3IDEzIDEgMTMgMSIgIHN0cm9rZT0iI2JhYmFiYSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4=");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 14px 9px;
    cursor: pointer;
    color: black;
}

.select-box__list {
    position: absolute;
    width: 100%;
    padding: 0;
    list-style: none;
    opacity: 0;
    -webkit-animation-name: HideList;
    animation-name: HideList;
    -webkit-animation-duration: 0.5s;
    animation-duration: 0.5s;
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-timing-function: step-start;
    animation-timing-function: step-start;
    box-shadow: 0 15px 30px 1px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.select-box__option {
    display: block;
    padding: 10px 15px;
    background-color: #fff;
}

.select-box__option:hover, .select-box__option:focus {
    color: var(--mainColor);
    background-color: #eeeeee;
}

@-webkit-keyframes HideList {
    from {
        transform: scaleY(1);
    }
    to {
        transform: scaleY(0);
    }
}

@keyframes HideList {
    from {
        transform: scaleY(1);
    }
    to {
        transform: scaleY(0);
    }
}

.select-fieldset {
    padding-right: 15px;
}

.select-box__option img, .select-box__option svg {
    width: 50px;
    margin-right: 10px;
}

.select-box__option svg {
    padding: 5px;
}


.price-range-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.price-input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

.price-input:focus {
    border-color: #ff7f00;
    box-shadow: 0 0 5px rgba(255, 127, 0, 0.5);
    outline: none;
}

.price-range-wrapper .default-btn {
    height: 45px;
    padding: 0;
    min-width: 20%;
}

.filter-box {
    border: 2px solid #eeeeee;
    border-radius: 20px;
    padding: 15px;
    margin-top: 1rem;
}

.irs--round .irs-bar, .irs--flat .irs-bar, .irs--flat .irs-from, .irs--flat .irs-to, .irs--flat .irs-single, .irs--flat .irs-handle > i:first-child {
    background-color: var(--mainColor);
}

.filter-container .menubar-close, .filter-container h2 {
    display: none;
}
.filter-container .menubar-close {
    font-size: 40px;
    text-align: center;
}

@media only screen and (max-width: 991px) {


    .filter-container .menubar-close, .filter-container h2 {
        display: block;
    }

    .filter-container {
        padding-top: 20px;
        position: fixed;
        top: 0;
        left: 0;
        background: white;
        z-index: 99999;
        width: 100%;
        height: 100%;
        transform: translateX(-100%);
        transition: 0.5s
    }

    .filter-container.opened {
        transform: translateX(0);
        overflow-x: scroll;
    }

}

#catalog-content {
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.single-product {
    display: flex;
    flex-direction: column;
    position: relative;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: white;
}

@media (hover: hover) {
    .single-product:hover {
        transform: scale(1.05);
        border: 1px solid #eee;
        z-index: 9;
        box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
    }
}

.single-product a {
    color: black;
    text-decoration: none;
}

.single-product-title svg {
    position: absolute;
    width: 40px;
    height: 40px;
    bottom: -15px;
    left: -20px;
}

@media only screen and (max-width: 576px) {

    .single-product-title svg {
        width: 40px;
        height: 40px;
        bottom: -10px;
        left: -10px;
    }


    #catalog-content {
        overflow: hidden;
    }

    .catalog-section h1 {
        margin-top: 20px;
        margin-bottom: 20px;
        font-size: 26px;
    }

}

.single-product-title {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.single-product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.single-product-title {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: calc(4 * 16px);
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
}

.single-product-img {
    position: relative;
    padding-bottom: 100%;
    height: 0;
    margin-bottom: 10px;
}

.single-product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    -moz-object-fit: contain;
}

.button-box {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.button-box a, .button-box button {
    width: 100%;
    color: var(--mainColor);
    font-size: 14px;
    text-align: center;
    line-height: 16px;
    padding: 5px 10px;
}

@media only screen and (min-width: 911px) and (max-width: 1024px) {
    .product-price {
        font-size: 26px;
    }

    .on-sale .real-price {
        font-size: 18px;
    }

    .button-box a, .button-box button {
        padding: 5px;
    }

}

.add-to-cart-btn {
    cursor:pointer
}

.add-to-cart-btn svg {
    fill: var(--mainColor);
}

.product-price {
    display: flex;
    flex-direction: column;
    margin: 5px 0 0;
}

.real-price {
    font-size: 24px;
}

.on-sale .real-price {
    font-size: 18px;
    width: fit-content;
    width: -moz-fit-content;
}

.sale-price {
    font-size: 24px
}

.sale-bundle {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    height: 24px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 16px;
    color: white;
    font-size: 12px;
    line-height: 24px;
    background: var(--mainColor);
}
.product-rating .stars {
    color: #FFD200;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}
.product-rating .rating-value {
    font-weight: 600;
    color: #333 !important;
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.pagination li {
    margin: 0;
    padding: 0;
    background: transparent!important;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
}

.pagination li a,
.pagination li span {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    background-color: var(--mainColor);
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--mainColor);

    padding: 0;
    margin: 0;
}


.pagination li a:hover {
    background-color: #fff;
    color: var(--mainColor);
    border-color: var(--mainColor);
}

.pagination li.active {
     background: none;
     border: none;
}

.pagination li.active a,
.pagination li.active span {
    background-color: #fff;
    color: var(--mainColor);
    border-color: var(--mainColor);
    cursor: default;
    pointer-events: none;
}

.pagination li.disabled span,
.pagination li.disabled a {
    background-color: #f1f1f1;
    border-color: #f1f1f1;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.mobile-filter-toggle {
    display: none
}

.selected-filter {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    background-color: #fff;
    border: 1px solid var(--mainColor);
    border-radius: 20px;
    font-size: 14px;
    color: #333;
    margin-right: 10px;
    margin-top: 10px;
}

.selected-filter .remove-filter {
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    line-height: 1;
    display: flex;
    align-items: center;
}

.selected-filter .remove-filter:hover {
    color: var(--mainColor);
}

@media only screen and (max-width: 991px) {
    .mobile-filter-toggle {
        display: flex;
    }

    .search-box {
        margin-top: 15px!important;
    }

    .sort-box {
        margin-top: 15px!important;
        width: 100%!important;
        justify-content: space-between;
    }

    .sort-box .default-btn {
        padding: 5px 15px;
        width: 50%;
    }

    .sort-box .select-box__current {
        width: 50%;
    }

    .sort-box .select-box__input-text {
        padding-left: 15px;
    }

    .sort-box span {
        display: none
    }
}

.product-card-badges {
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 16px;
}

.product-card-badges .badge {
    font-size: 11px;
    letter-spacing: .2px;
    padding: 4px 10px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.on-sale .real-price:before {
    background: black;
}

.checkbox-list::-webkit-scrollbar {
    width: 4px;
}
.checkbox-list::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}
.checkbox-list::-webkit-scrollbar-track {
    background-color: #f1f1f1;
}

/* Кастомный чекбокс */
.custom-checkbox {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.8rem; /* Отступ для квадратика */
    margin-bottom: 0.5rem;
}

/* Скрываем стандартный инпут */
.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 1rem;
    height: 1.25rem;
    opacity: 0;
}

/* Лейбл */
.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    user-select: none;
}

/* Рисуем квадратик */
.custom-control-label::before {
    position: absolute;
    top: 0.1rem; /* Центрирование относительно текста */
    left: -1.8rem;
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    pointer-events: none;
    content: "";
    background-color: #fff;
    border: 1px solid #adb5bd;
    border-radius: 0.25rem;
    transition: background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Рисуем галочку (скрыта по умолчанию) */
.custom-control-label::after {
    position: absolute;
    top: 0.1rem;
    left: -1.8rem;
    display: block;
    width: 1.2rem;
    height: 1.2rem;
    content: "";
    background: no-repeat 50% / 50% 50%;
}

/* Ховер эффект */
.custom-checkbox:hover .custom-control-label::before {
    border-color: #fb5300;
}

/* Состояние CHECKED: синий фон */
.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: #fb5300;
    background-color: #fb5300;
}

/* Состояние CHECKED: показываем галочку (SVG) */
.custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e");
}

/* Состояние Disabled (на всякий случай) */
.custom-control-input:disabled ~ .custom-control-label::before {
    background-color: #e9ecef;
}

/* --- Быстрые фильтры (Теги) --- */
.catalog-tags-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.catalog-tags-scroll {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.catalog-tag-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid #FB5300; /* Твой оранжевый цвет */
    border-radius: 50px;       /* Овальная форма */
    color: #FB5300;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;       /* Текст в одну строку */
    background: transparent;
}

.catalog-tag-btn:hover {
    background-color: #FB5300;
    color: #fff;
    text-decoration: none;
}

/* Активная кнопка (когда мы на этой странице) */
.catalog-tag-btn.active {
    background-color: #FB5300;
    color: #fff;
    cursor: default;
    pointer-events: none; /* Нельзя кликнуть повторно */
}

/* Адаптация под мобильные (Горизонтальный скролл) */
@media (max-width: 991px) {
    .catalog-tags-scroll {
        flex-wrap: nowrap;        /* Отключаем перенос строк */
        overflow-x: auto;         /* Включаем скролл */
        padding-bottom: 5px;      /* Отступ для пальца */
        -webkit-overflow-scrolling: touch; /* Плавность на iPhone */
        scrollbar-width: none;    /* Скрываем скроллбар (Firefox) */
    }

    /* Скрываем скроллбар (Chrome/Safari) */
    .catalog-tags-scroll::-webkit-scrollbar {
        display: none;
    }

    .catalog-tag-btn {
        padding: 6px 14px;
        font-size: 13px;
    }
}

