/* Modern Sidebar CSS - Javított verzió */

/* Sidebar container - világosabb */
.sidebar {
    width: 280px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0;
    position: sticky;
    top: 70px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Scrollbar */
.sidebar::-webkit-scrollbar {
    width: 8px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* Sidebar header (mobilra) */
.sidebar-header {
    display: none;
    background: white;
    color: white;
    padding: 15px;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 16px;
}

.sidebar-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
}

/* Sidebar sections */
.sidebar-section {
    border-bottom: 1px solid #f0f0f0;
    padding: 20px 15px;
}

.sidebar-section:last-child {
    border-bottom: none;
}

/* Sidebar címek - javított */
.sidebar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #333333;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-title svg {
    color: var(--primary-color);
    width: 16px;
    height: 16px;
}

/* Aktív szűrők */
.active-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clear-all-filters {
    background: #f0f0f0;
    color: #666;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-all-filters:hover {
    background: #e0e0e0;
}

/* Ár szűrő */
.price-range-info {
    text-align: center;
    margin-bottom: 10px;
    color: #666;
    font-size: 12px;
}

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

.price-input-group {
    flex: 1;
}

.price-input-group label {
    display: block;
    font-size: 11px;
    color: #666;
    margin-bottom: 5px;
}

.price-input-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.price-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.price-separator {
    color: #666;
    padding: 0 5px;
}

.quick-price-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.quick-price-btn {
    background: #ffffff;
    border: 1px solid #ddd;
    color: #666;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s ease;
}

.quick-price-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Szűrő opciók - javított */
.filter-options {
    max-height: 200px;
    overflow-y: auto;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-option:hover {
    background: #f0f0f0;
    border-color: var(--primary-color);
}

.filter-option:has(input:checked) {
    background: rgba(123, 196, 164, 0.1);
    border-color: var(--primary-color);
}

.filter-option input[type="radio"] {
    width: 16px;
    height: 16px;
}

.filter-option-text {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #333;
}

.filter-count {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Szín szűrő */
.color-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    max-height: 180px;
    overflow-y: auto;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    cursor: pointer;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.color-option:hover {
    background: #f0f0f0;
    border-color: var(--primary-color);
}

.color-option:has(input:checked) {
    background: rgba(123, 196, 164, 0.1);
    border-color: var(--primary-color);
}

.color-option input[type="radio"] {
    display: none;
}

.color-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #ddd;
}

.color-name {
    flex: 1;
    font-size: 13px;
    color: #333;
}

/* Kategória navigáció - javított */
.category-nav {
    margin-top: 5px;
}

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

.category-item {
    margin-bottom: 5px;
}

.category-link-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-link {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    text-decoration: none;
    color: #333;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.category-link:hover {
    background: #f0f0f0;
    color: var(--primary-color);
    transform: translateX(2px);
}

.category-link.active {
    background: var(--primary-color);
    color: white;
}

.category-name {
    font-size: 13px;
}

.category-count {
    font-size: 11px;
    background: #f0f0f0;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
}

.category-link.active .category-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.category-toggle {
    background: #ffffff;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.category-toggle:hover {
    background: #f0f0f0;
}

/* Alkategóriák */
.subcategory-list {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.subcategory-list.expanded {
    max-height: 300px;
}

.subcategory-item {
    margin-bottom: 3px;
}

.subcategory-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    text-decoration: none;
    color: #666;
    background: #fafafa;
    border: 1px solid #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s ease;
}

.subcategory-link:hover {
    background: #f0f0f0;
    color: var(--primary-color);
    transform: translateX(2px);
}

.subcategory-link.active {
    background: var(--primary-color);
    color: white;
}

.subcategory-count {
    font-size: 10px;
    background: #f0f0f0;
    color: #666;
    padding: 1px 4px;
    border-radius: 2px;
}

.subcategory-link.active .subcategory-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Sidebar bannerek */
.sidebar-banners {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-banner {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s ease;
}

.sidebar-banner:hover {
    transform: translateY(-2px);
}

.banner-link {
    display: block;
    text-decoration: none;
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    padding: 10px;
    color: white;
}

.banner-title {
    font-size: 12px;
    font-weight: bold;
}

/* No categories üzenet */
.no-categories {
    color: #666;
    text-align: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 4px;
    font-style: italic;
}

/* Sidebar overlay mobilra */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

/* Mobil nézet */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -280px;
        height: 100vh;
        max-height: none;
        border-radius: 0;
        transition: left 0.3s ease;
        z-index: 100;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar-header {
        display: flex;
    }
    
    .sidebar-overlay {
        display: block;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }
    
    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-separator {
        display: none;
    }
}