/* =============================================
   CATEGORY LAYOUT CSS - NUR LAYOUT SPEZIFISCH
   Produktkarten über globale Product Card Component
   ============================================= */

/* GENERAL LAYOUT */
.category-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    min-width: 320px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

/* BREADCRUMBS */
.breadcrumbs {
    background: white;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.breadcrumb-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: #3b82f6;
}

.breadcrumb-current {
    color: #1f2937;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #9ca3af;
    font-size: 12px;
}

/* CATEGORY HEADER */
.category-header {
    margin-bottom: 30px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 200px;
}

.category-header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    height: 100%;
    min-height: 200px;
}

.category-image-section {
    flex: 0 0 30%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.category-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.category-icon-fallback {
    width: 120px;
    height: 120px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 48px;
    flex-direction: column;
}

.category-text-section {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.category-text-section h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    border: none !important;
    border-bottom: none !important;
    text-decoration: none !important;
    line-height: 1.2;
}

.category-text-section h1::after,
.category-text-section h1:after {
    display: none !important;
    content: none !important;
    border: none !important;
    background: none !important;
}

.category-description {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.category-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: #174d9a;
}

/* SUBCATEGORY PILLS */
.mobile-subcategories-section {
    margin-bottom: 20px;
}

.subcategory-toggle {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    transition: background-color 0.2s;
}

.subcategory-toggle:hover {
    background: #e5e7eb;
}

.pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.subcategory-pill {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 8px 16px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subcategory-pill:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pill-count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.subcategory-pill:hover .pill-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* CONTROLS BAR */
.controls-bar {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.results-info {
    color: #6b7280;
    font-size: 14px;
}

.controls-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.view-controls {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #f3f4f6;
}

.view-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.filter-button {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.filter-button:hover {
    background: #f3f4f6;
}

/* PRODUCTS CONTAINER */
.products-container {
    background: transparent;
}

/* PRODUCTS GRID LAYOUT */
.products-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

/* Grid für verschiedene Bildschirmgrößen */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* LIST VIEW */
.products-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* NO RESULTS */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #374151;
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.page-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* FILTER OVERLAY & PANEL */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.filter-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

.filter-panel.open {
    right: 0;
}

.filter-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-header h3 {
    margin: 0;
    color: #1f2937;
}

.filter-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
}

.filter-section {
    padding: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.filter-section h3 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1f2937;
}

/* PRICE RANGE FILTER */
.price-range-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 6px;
}

.price-min, .price-max {
    font-weight: 600;
    color: #1f2937;
}

.price-separator {
    color: #6b7280;
}

.price-range-container {
    position: relative;
    margin-bottom: 20px;
}

.price-range-slider {
    position: relative;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
}

.range-input {
    position: absolute;
    top: -8px;
    left: 0;
    width: 100%;
    height: 22px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.range-input::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    pointer-events: all;
    -webkit-appearance: none;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    pointer-events: all;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.range-fill {
    position: absolute;
    top: 0;
    height: 6px;
    background: #3b82f6;
    border-radius: 3px;
}

.apply-filter-btn {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.apply-filter-btn:hover {
    background: #2563eb;
}

/* BRAND FILTER */
.brand-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.brand-item:hover {
    background: #f3f4f6;
}

.brand-item a {
    color: #374151;
    text-decoration: none;
    font-weight: 500;
}

.brand-count {
    background: #e5e7eb;
    color: #6b7280;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* CHECKBOX FILTER */
.filter-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3b82f6;
}

.filter-checkbox label {
    color: #374151;
    cursor: pointer;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    .category-page {
        padding: 10px;
    }
    
    .category-header {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .category-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .category-image-section {
        flex: none;
        width: 100%;
    }
    
    .category-text-section h1 {
        font-size: 24px;
    }
    
    .category-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .controls-bar {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .controls-right {
        width: 100%;
        justify-content: center;
    }
    
    .filter-panel {
        width: 100%;
        right: -100%;
    }
    
    .breadcrumb-container {
        padding: 0 10px;
    }
    
    .subcategory-toggle {
        padding: 10px 15px;
    }
    
    .pills-container {
        gap: 8px;
    }
    
    .subcategory-pill {
        font-size: 13px;
        padding: 6px 12px;
    }
} 