/* ========================================
   FILTERS SIDEBAR
   ======================================== */

.filters-sidebar {
    background: #fff;
    border: none;
    /*box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1); */
    border-radius: 7px;
    /*padding: 17px; */
}

.filters-title {
    font-size: 1.2rem;
    font-weight: 600;
    padding-top: 17px;
    /*padding-bottom: 15px;*/
    margin: 0 17px 17px 17px;
    color: #373737;
    letter-spacing: 0.02em;
}

.filter-group {
    margin-top: 0px;
    padding-bottom: 15px;
    /*border-bottom: 1px solid #afafaf; */
}
.filter-group-content { 
	padding-left: 17px;
	padding-right: 17px;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    /*padding-bottom: 0; */
}

.filter-group h6 {
    font-size: 1.0rem;
    font-weight: 600;
    padding-top: 17px;
    margin-left: 17px;
    margin-right: 17px;
    margin-bottom: 12px;
    color: #373737;
	border-top: 1px solid #d8d8d8;
}

/* ========================================
   SCROLLABLE FILTER LISTS
   ======================================== */

.filter-list-scroll {
    max-height: 250px;
    overflow-y: auto;
    /*margin-right: -10px;*/
    padding-right: 0px;

}

/* Custom scrollbar */
.filter-list-scroll::-webkit-scrollbar {
    width: 5px;
}

.filter-list-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.filter-list-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.filter-list-scroll::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Firefox scrollbar */
.filter-list-scroll {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

/* ========================================
   FILTER LISTS
   ======================================== */

.filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list li {
    margin-bottom: 0px;
}

.filter-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #373737;
    text-decoration: none;
    padding: 5px 17px;
    font-size: 0.9rem;
    border-radius: 0px;
    /*transition: all 0.2s;*/
}

.filter-list a:hover {
	background-color: #efefef;
    color: #373737;
    text-decoration: none;
}

.filter-list a.selected {
    font-weight: 700;
    color: #373737;
    background-color: #fff;
}

.filter-list a.selected .filter-count {
    font-weight: 700;
    color: #373737;
}

.filter-name {
    flex: 1;
}

.filter-count {
    color: #888;
    /*font-size: 0.85rem;*/
    margin-left: 8px;
}

/* ========================================
   MANUFACTURER CHECKBOX STYLE
   ======================================== */

.filter-checkbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1px solid #aaa;
    border-radius: 3px;
    margin-right: 8px;
    background: #fff;
    transition: all 0.15s ease;
}

.filter-checkbox.checked {
    background: #ffcb00;
    border-color: #e0b400;
}

.filter-checkbox.checked svg {
    color: #000;
}

.filter-list-manufacturers a:hover .filter-checkbox:not(.checked) {
    border-color: #ffcb00;
    background: #fffbe6;
}

.filter-list-manufacturers a.selected {
    font-weight: 700;
    color: #373737;
    background-color: #fff;
}

.filter-list-manufacturers a.selected:hover {
    background-color: #efefef;
}

/* Eshop logo */
.eshop-logo {
    max-height: 20px;
    max-width: 60px;
    object-fit: contain;
    margin-right: 8px;
}

/* ========================================
   FILTER CATEGORY TREE
   ======================================== */

.category-tree-scroll {
    max-height: 230px;
    overflow-y: auto;
    /*margin-right: -10px;
    padding-right: 10px;   */
}

/* Custom scrollbar */
.category-tree-scroll::-webkit-scrollbar {
    width: 5px;
}

.category-tree-scroll::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 3px;
}

.category-tree-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.category-tree-scroll::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* Firefox scrollbar */
.category-tree-scroll {
    scrollbar-width: thin;
    scrollbar-color: #ccc #f5f5f5;
}

.category-tree {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-tree > li {
    margin-bottom: 0px;
}

.category-tree a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #373737;
    text-decoration: none;
    padding: 5px 17px;
    font-size: 0.95rem;
    border-radius: 0px;
    /*transition: all 0.2s;*/
}


.category-tree a:hover, .category-tree a.selected:hover {
    background-color: #efefef;
    color: #373737;
    text-decoration: none;
}

.category-tree a.selected {
    font-weight: 700;
    color: #373737;
    background-color: #fff;
}

.category-tree a.selected .filter-count {
    font-weight: 700;
    color: #373737;
}

/* Subcategories - indented */
.category-tree .subcategory-list {
    list-style: none;
    padding-left: 0px;
    margin-top: 0px;
    margin-bottom: 0px; 
}

.category-tree .subcategory-list li {
    /*margin-bottom: 5px; */
	padding-left: 0px;
}

.category-tree .subcategory-list a { 
	padding-left: 34px;
    font-size: 0.85rem;
}

/* Level 3 categories - more indent */
.category-tree .subcategory-list .subcategory-list {
    padding-left: 0px;
}

.category-tree .subcategory-list .subcategory-list a {
    font-size: 0.85rem;
	padding-left: 51px;
}

/* Category toggle icon */
.category-toggle {
    font-size: 0.7rem;
    margin-right: 8px;
    color: #d4a017;
    cursor: pointer;
    min-width: 12px;
    display: inline-block;
}

.category-item.collapsed .subcategory-list {
    display: none;
}

/* ========================================
   ACTIVE FILTERS BAR
   ======================================== */

.active-filters-bar {
    /*background: #fff;*/
    margin-bottom: 16px;
	font-size: 0.9rem;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background: #e7f3ff;
    border: 1px solid #90caf9;
    color: #1565c0;
    padding: 8px 36px 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    min-height: 50px;
}

.filter-tag-content {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.filter-tag-label {
    font-weight: 400;
    font-size: 0.75rem;
    color: #666;
}

.filter-tag-value {
    font-weight: 500;
    color: #1565c0;
}

.filter-tag-remove {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #1565c0;
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.filter-tag-remove:hover {
    opacity: 1;
    color: #0d47a1;
    text-decoration: none;
}

.filter-tag-remove svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

/* ========================================
   PRICE FILTER
   ======================================== */

.price-input-wrapper {
    position: relative;
}

.price-input-label {
    position: absolute;
    top: -4px;
    left: 8px;
    font-size: 10px;
    font-weight: 500;
    color: #888;
    background: #fff;
    padding: 0 5px;
    z-index: 1;
    line-height: 1;
    /*text-transform: uppercase; */
    letter-spacing: 0.5px;
}

.price-input {              
	font-size: 0.95rem;
    text-align: right;
    padding-right: 22px;
    font-weight: 600;
}

.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-input {
    -moz-appearance: textfield;
}

.price-input-wrapper::after {
    content: '€';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    /*color: #666;*/
    font-size: 0.95rem;
	font-weight: 600;
    pointer-events: none; 
}
.price-button{
	margin-top:17px;

}

/* Price slider */
.price-slider-container {
    padding: 0px 5px 5px 5px;
    max-width: 100%;
}

#priceSlider {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    position: relative;
    margin: 20px 0;
    width: 100%;
    max-width: 100%;
}

.price-slider-range {
    height: 100%;
    background: var(--color-btn-primary);
    border-radius: 3px;
    position: absolute;
    max-width: 100%;
}


.price-slider-handle {
    width: 18px;
    height: 18px;
    background: var(--color-btn-primary);
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.2s;
    z-index: 2;
}

/* Ensure handle stays within bounds */
.price-slider-handle.handle-min {
    left: 0;
    min-left: 0;
}

.price-slider-handle.handle-max {
    max-left: 100%;
}

.price-slider-handle:hover,
.price-slider-handle:active {
    background: var(--color-btn-primary);
    transform: translate(-50%, -50%) scale(1.2);
}

.price-slider-handle.dragging {
    background: var(--color-btn-primary);
    transform: translate(-50%, -50%) scale(1.2);
}

/* ========================================
   MOBILE FILTER TOGGLE
   ======================================== */

.filter-toggle-btn {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-toggle-btn:hover {
    background: #f8f9fa;
    border-color: var(--color-btn-primary);
    color: var(--color-btn-primary); /*#1565c0;*/
}

.filter-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* Filter overlay */
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1050;
}

.filter-overlay.active {
    display: block;
}

/* Close button for mobile filter */
.filter-close-btn {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    transition: all 0.2s;
}

.filter-close-btn:hover {
    background: #e0e0e0;
    color: #333;
}

/* ========================================
   FILTER RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
    .filter-toggle-btn {
        display: inline-flex;
    }
    
    .filter-close-btn {
        display: block;
    }
    
    .filters-column {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 300px;
        height: 100%;
        z-index: 1051;
        overflow-y: auto;
        padding: 0;
    }
    
    .filters-column.active {
        display: block;
    }
    
    .filters-column .filters-sidebar {
        border-radius: 0;
        min-height: 100%;
        padding-top: 60px;
    }
}

@media (max-width: 576px) {
    .filters-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
.active-filters-bar {
    background: #fff;
	padding:13px 13px 0 13px;
    margin-top: 0px;
    margin-bottom: 0px;
	font-size: 0.8rem;
}
}