﻿.catalog-main {
    padding-top: 105px;
    min-height: 100vh;
    background: #f8f9fa;
}

.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 30px;
    padding: 30px 20px;
    align-items: flex-start;
}

.catalog-sidebar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 105px;
    z-index: 5000;
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section h3 {
    margin: 0 0 24px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 700;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 12px;
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

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

.filter-group h4 {
    margin: 0 0 16px 0;
    color: #374151;
    font-size: 16px;
    font-weight: 600;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
}

.price-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.price-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-list label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.checkbox-list label:hover {
    color: #3b82f6;
}

.checkbox-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

.count {
    color: #6b7280;
    font-size: 12px;
    margin-left: auto;
}

.catalog-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 5;
    flex: 1;
    min-width: 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    gap: 20px;
    position: sticky;
    top: 85px;
    background: white;
    z-index: 5000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.catalog-header h1 {
    margin: 0;
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.catalog-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.view-toggle {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #6b7280;
    transition: all 0.2s ease;
}

.view-btn.active,
.view-btn:hover {
    background: white;
    color: #3b82f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.category-sections {
    margin-bottom: 50px;
}

.category-section {
    margin-bottom: 50px;
}

.category-section h2 {
    margin: 0 0 24px 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    padding: 15px 30px;
    border-bottom: 2px solid #3b82f6;
    position: sticky;
    top: 175px;
    background: white;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

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

.category-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.category-image {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.05);
}

.category-info {
    padding: 20px;
}

.category-info h3 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
}

.category-info p {
    margin: 0 0 12px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.product-count {
    color: #3b82f6;
    font-size: 12px;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.products-section h2 {
    margin: 0 0 24px 0;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    display: flex;
    flex-direction: row;
    height: 200px;
}

.products-grid.list-view .product-image {
    width: 200px;
    height: 100%;
    flex-shrink: 0;
}

.products-grid.list-view .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #10b981;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.product-badge.sale {
    background: #ef4444;
}

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.product-price {
    margin: 0 0 8px 0;
    color: #3b82f6;
    font-size: 18px;
    font-weight: 700;
}

.product-status {
    margin: 0 0 16px 0;
    color: #10b981;
    font-size: 12px;
    font-weight: 500;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-compare {
    background: transparent;
    border: 1px solid #d1d5db;
    color: #374151;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-compare:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.btn-cart {
    background: #3b82f6;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
}

.btn-cart:hover {
    background: #2563eb;
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .catalog-container {
        grid-template-columns: 250px 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .catalog-sidebar {
        padding: 20px;
    }
    
    .catalog-content {
        padding: 20px;
    }
}

@media (max-width: 1000px) {
    .catalog-header h1 {
        font-size: 28px;
    }
    
    .catalog-controls {
        gap: 15px;
    }
    
    .sort-select {
        font-size: 13px;
        padding: 8px 12px;
    }
}

@media (max-width: 768px) {
    .catalog-main {
        padding-top: 90px;
    }
    
    .catalog-container {
        flex-direction: column;
        gap: 20px;
        padding: 15px 10px;
    }
    
    .catalog-sidebar {
        position: static;
        order: 2;
        max-height: none;
        overflow-y: visible;
        width: 100%;
    }
    
    .catalog-content {
        order: 1;
        padding: 15px;
    }
    
    .catalog-header {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        position: sticky;
        top: 65px;
        background: #f8f9fa;
        z-index: 5000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .category-section h2 {
        top: 155px;
        font-size: 20px;
        padding: 12px 15px;
        margin-top: 15px;
    }
    
    .catalog-header h1 {
        font-size: 28px;
        text-align: center;
    }
    
    .catalog-controls {
        justify-content: space-between;
    }
    
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .catalog-main {
        padding-top: 80px;
    }
    
    .catalog-container {
        padding: 10px 5px;
    }
    
    .catalog-sidebar {
        padding: 15px;
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    .catalog-content {
        padding: 10px;
    }
    
    .catalog-header {
        position: sticky;
        top: 60px;
        background: #f8f9fa;
        z-index: 5000;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .catalog-header h1 {
        font-size: 24px;
    }
    
    .category-section h2 {
        top: 150px;
        font-size: 18px;
        padding: 10px 10px;
        margin-top: 10px;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .catalog-controls {
        flex-direction: column;
        gap: 15px;
    }
}


