/*=Font size */
.ocfilter-option .ocf-option-name,
.ocfilter-option .ocf-option-values,
.ocfilter-option .ocf-option-description,
.ocfilter-option .fields-price {
    font-size: 12px;
}

.ocfilter-option .ocf-option-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

.ocfilter-option .ocf-option-values {
    overflow: visible;
}

.list-group-item {
    overflow: visible !important;
    padding: 20px;
}

.ocfilter-option .ocf-option-values .dropdown-menu {
    min-width: 100%;
    max-height: 250px;
    overflow: auto;
    padding: 10px;
}

.ocfilter-option .ocf-color {
    border-radius: 3px 3px 3px 3px;
    float: left;
    height: 19px;
    margin: 1px -16px 0 -3px;
    width: 19px;
}

.ocfilter-option .ocf-image {
    background-repeat: no-repeat;
    background-position: 0 0;
    float: left;
    height: 19px;
    margin: 1px -16px 0 -3px;
    position: relative;
    width: 19px;
    z-index: 10;
}

.ocfilter-option label {
    cursor: pointer;
    display: block;
    font-size: 12px;
    font-weight: normal;
    line-height: 1.2;
    white-space: normal;
    padding: 1px 0;
    margin: 0;
    width: 100%;
}

.ocfilter-option .dropdown-menu label {
    white-space: nowrap;
}

.ocfilter-option label input {
    display: none;
    margin: 0 5px 0 0;
    vertical-align: top;
}

.ocfilter-option label small {
    background-color: #DBEAF9;
    color: #0E6A93;
    font-weight: 200;
    font-size: 10px;
    margin-left: 5px;
}

.ocfilter-option label.disabled {
    color: #999999;
}

.ocfilter-option label.disabled small {
    background-color: #EFEFEF;
    color: #999999;
}

.ocfilter-option label {
    color: #444;
    text-decoration: none;
}

.ocfilter-option label.ocf-selected {
    color: #E56101;
}

.ocfilter-option label.ocf-selected small {
    opacity: 0;
}

/*=Collapse Options */
button[data-target="#ocfilter-hidden-options"] {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

button[data-target="#ocfilter-hidden-options"] .fa:before {
    content: "\f078";
}

button[data-target="#ocfilter-hidden-options"][aria-expanded="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

button[data-target="#ocfilter-hidden-options"][aria-expanded="true"] .fa:before {
    content: "\f077";
}

/*=Collapse Values */
.collapse-value {
    margin-bottom: 10px;
}

.collapse-value > button, .collapse-value > button:focus, .collapse-value > button:active, .collapse-value > button:active:focus {
    text-align: left;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    font-size: 12px;
    text-decoration: underline;
    outline: none;
}

.collapse-value > button .fa:before {
    content: "\f107";
}

.collapse-value > button[aria-expanded="true"] {
}

.collapse-value > button[aria-expanded="true"] .fa:before {
    content: "\f106";
}

/*=Selected Options */
.selected-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #fdf8f0;
    border: 1px solid #e8dcc8;
    border-radius: 4px;
    overflow: visible !important;
}

.selected-options__items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.selected-options__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.selected-options__label {
    font-size: 0.75rem;
    color: #8b6e4b;
    font-weight: 600;
    margin-right: 0.125rem;
}

.selected-options__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    color: #9b6d36;
    background-color: #fff5e6;
    border: 1px solid #e5c896;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.3;
}

.selected-options__tag:hover {
    background-color: #fdecd0;
    border-color: #d4a44a;
    color: #7a5522;
}

.selected-options__tag svg {
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.selected-options__tag:hover svg {
    opacity: 1;
}

.filter__clearfilter {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    align-self: flex-end;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d4a44a, #b8883a);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.filter__clearfilter:hover {
    background: linear-gradient(135deg, #e5b55a, #c9994a);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.filter__clearfilter svg {
    flex-shrink: 0;
}

/*=Price filtering */
#ocfilter-price .ocf-option-values {
    padding: 10px 10px 5px;
}

.trackbar, .trackbar .left-block, .trackbar .right-block {
    height: 4px;
}

.popover-content .form-inline {
    white-space: nowrap;
}

.popover-content .form-inline .form-group {
    display: inline-block;
    margin-bottom: 0;
    vertical-align: middle;
}

.scale {
    margin-bottom: 35px;
    margin-left: 15px;
    margin-right: 15px;
}

.ocfilter .popover .form-inline .form-control {
    width: 100px;
}

/* Position center style */
.ocfilter-content-top, .ocfilter-content-bottom {
}

.ocfilter-content-top .box-content, .ocfilter-content-bottom .box-content {
    font-size: 0;
}

.ocfilter-content-top .ocfilter-option, .ocfilter-content-bottom .ocfilter-option {
    display: inline-block;
    vertical-align: top;
    width: 33%;
}

.ocfilter-content-top .ocfilter-option + .ocfilter-option, .ocfilter-content-bottom .ocfilter-option + .ocfilter-option {
    border-top: none;
}

/*=Mobile */
.ocf-offcanvas {
    position: fixed;
    top: 0;
    background-color: #fff;
    bottom: 0;
    left: -250px;
    z-index: 1000;
    height: 100%;
    width: 250px;
    padding: 0;

    -webkit-transition: left 250ms ease;
    -moz-transition: left 250ms ease;
    -ms-transition: left 250ms ease;
    -o-transition: left 250ms ease;
    transition: left 250ms ease;
}

.ocf-offcanvas.active {
    left: 0;
}

.ocf-offcanvas .ocfilter-mobile-handle {
    position: absolute;
    left: 100%;
    top: 88px;
}

.ocf-offcanvas .ocfilter-mobile-handle .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.ocf-offcanvas .ocf-offcanvas-body {
    overflow-x: hidden;
    overflow-y: auto;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.ocfilter .list-group {
    display: flex;
    flex-wrap: wrap;
}

/* removed: .selected-options .ocfilter-option display none */

@media screen and (max-width: 1270px) {
    .open_filter_btn {
        display: flex;
    }
}

/* OCFilter — інтеграція з дизайном filter-link */
.filter-link.ocf-selected .custom-radio::after {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #e5a34c;
    border-radius: 50%;
}

.filter-link.ocf-selected .filter-text {
    color: #9b6d36;
}

.filter-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.filter-link.disabled .custom-radio {
    border-color: #ddd;
}

/* OCFilter — кнопка "Показати N товарів" */
.filters-section {
    position: relative;
}

.ocfilter-button {
    position: absolute;
    right: 0;
    z-index: 20;
    pointer-events: auto;
}

.ocfilter-submit {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #d4a44a, #b8883a);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: background 0.3s;
}

.ocfilter-submit:hover {
    background: linear-gradient(135deg, #e5b55a, #c9994a);
}

.ocfilter-submit.disabled {
    opacity: 0.5;
    pointer-events: none;
}