/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Główny kontener */
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



/* Główna zawartość */
.main-content {
    display: flex;
    min-height: 600px;
}

/* Sidebar z kategoriami */
.categories-sidebar {
    width: 300px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    padding: 20px;
}

.categories-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.category-item {
    margin-bottom: 8px;
    padding: 12px 15px;
    background: white;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.category-item:hover {
    border-color: #3498db;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2);
}

.category-item.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border-color: #2980b9;
}

/* Sekcja filtrów */
.filters-section {
    flex: 1;
    padding: 30px;
    max-height: 800px;
    overflow-y: auto;
}

.filters-title {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.filter-group {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.filter-group:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.filter-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.filter-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    background: #f8f9fa;
}

.filter-control:focus {
    outline: none;
    border-color: #3498db;
    background: white;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-item:hover {
    background: #f1f3f4;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.checkbox-item label {
    cursor: pointer;
    font-size: 13px;
    color: #555;
}

/* Sekcja wyszukiwania */
.search-section {
    background: #2c3e50;
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: white;
}

.search-btn, .clear-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-btn {
    background: #27ae60;
    color: white;
}

.search-btn:hover {
    background: #229954;
    transform: translateY(-2px);
}

.clear-btn {
    background: #e74c3c;
    color: white;
}

.clear-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Informacje o wynikach */
.results-info {
    background: #ecf0f1;
    padding: 15px 30px;
    font-weight: 500;
    color: #2c3e50;
}

/* Brak kategorii */
.no-category {
    text-align: center;
    color: #7f8c8d;
    padding: 60px 20px;
}

.no-category h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* Siatka produktów */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 30px;
}

.product-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.product-image {
    height: 150px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.no-image {
    color: #999;
    font-style: italic;
}

.product-content {
    padding: 15px;
}

.product-title {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.product-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: #3498db;
}

.product-excerpt {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-taxonomies {
    margin-bottom: 15px;
}

.taxonomy-group {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

.taxonomy-group strong {
    color: #2c3e50;
}

.product-actions {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
    font-size: 18px;
    background: white;
    border-radius: 10px;
    margin: 20px 30px;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #3498db;
    font-size: 16px;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }
    
    .categories-sidebar {
        width: 100%;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 15px;
    }
    
    .search-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-btn, .clear-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8em;
    }
    
    .categories-sidebar {
        padding: 15px;
    }
    
    .filters-section {
        padding: 20px 15px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}