.search-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.search-input, .filter-select, .price-input {
    padding: 8px 12px;
    border: 1px solid #ECF0F1;
    border-radius: 6px;
    font-size: 14px;
}

.products-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #F8F9FA;
    padding: 5px;
    display: block;
}

.no-image {
    width: 80px;
    height: 80px;
    background: #F8F9FA;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7F8C8D;
    font-size: 12px;
    margin: 0 auto;
}

.product-name {
    font-weight: 500;
    color: #2C3E50;
    max-width: 60%;
}

.product-brand {
    font-size: 12px;
    color: #7F8C8D;
    margin-top: 4px;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: #27AE60;
}

.price-na {
    color: #7F8C8D;
    font-size: 14px;
}

.no-products {
    text-align: center;
    padding: 60px;
    color: #7F8C8D;
}

.filters-sidebar {
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.filter-collapsible {
    border-bottom: 1px solid #ECF0F1;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background: white;
    transition: background 0.2s;
    font-weight: 600;
    font-size: 15px;
    color: #2C3E50;
}

.filter-header:hover {
    background: #F8F9FA;
}

.filter-header .toggle-icon svg {
    width: 12px;
    height: 12px;
    transition: transform 0.3s ease;
    color: #7F8C8D;
}

.filter-collapsible.collapsed .toggle-icon svg {
    transform: rotate(0deg);
}

.filter-collapsible:not(.collapsed) .toggle-icon svg {
    transform: rotate(180deg);
}

.filter-content {
    padding: 0 20px 15px 20px;
    border-top: none;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.filter-collapsible.collapsed .filter-content {
    max-height: 0;
    opacity: 0;
    padding: 0 20px;
    transition: max-height 0.3s ease, opacity 0.2s ease, padding 0.2s ease;
}

.filter-search {
    position: relative;
    margin-bottom: 12px;
    width: 100%;
}

.filter-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #ECF0F1;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.filter-search input:focus {
    border-color: #E67E22;
}

.filter-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #7F8C8D;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #2C3E50;
    padding: 6px 0;
    transition: color 0.2s;
}

.checkbox-item:hover {
    color: #E67E22;
}

.checkbox-item input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #E67E22;
}

.checkbox-item .checkbox-label {
    flex: 1;
    cursor: pointer;
}

.checkbox-item .checkbox-count {
    color: #7F8C8D;
    font-size: 11px;
    background: #F8F9FA;
    padding: 2px 6px;
    border-radius: 12px;
    min-width: 35px;
    text-align: center;
}

.filter-clear-icon {
    width: 12px;
    height: 12px;
}

.filter-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #ECF0F1;
}

.filter-select-all, .filter-clear {
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-select-all {
    color: #E67E22;
}

.filter-select-all:hover {
    color: #D35400;
    text-decoration: underline;
}

.filter-clear {
    color: #E74C3C;
}

.filter-clear:hover {
    color: #C0392B;
    text-decoration: underline;
}

.filter-show-more {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #E67E22;
    margin-top: 10px;
    cursor: pointer;
}

.filter-show-more:hover {
    text-decoration: underline;
}

.filter-hidden {
    display: none !important;
}

.filter-buttons {
    padding: 15px 20px;
    border-top: 1px solid #ECF0F1;
    display: flex;
    gap: 10px;
}

.btn-apply-filters {
    flex: 2;
    background: #E67E22;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply-filters:hover {
    background: #D35400;
}

.btn-reset-link {
    flex: 1;
    background: #F8F9FA;
    color: #7F8C8D;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-reset-link:hover {
    background: #ECF0F1;
    color: #2C3E50;
    text-decoration: none;
}

.product-image[src=""] {
    display: none;
}

.product-image-cell {
    width: 100px;
    text-align: center;
}

/* Дополнительные стили для category_products.html (двухколоночный макет) */
.two-columns {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.filters-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 20px;
    align-self: flex-start;
    background: white;
    padding: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    overflow: hidden;
}

.products-area {
    flex: 1;
    min-width: 300px;
}

.category-header {
    margin-bottom: 25px;
}

.category-header h1 {
    margin-bottom: 10px;
}

.category-stats {
    display: flex;
    gap: 15px;
}

.stat-badge {
    background: #ECF0F1;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #2C3E50;
}

.stat-badge.in-stock {
    background: #D5F5E3;
    color: #27AE60;
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 5px;
    color: #2C3E50;
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ECF0F1;
    border-radius: 8px;
}

.checkbox-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.checkbox-group-vertical label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.price-inputs {
    display: flex;
    gap: 10px;
}

.price-inputs input {
    width: 50%;
}

.btn-apply-filters {
    margin-top: 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        flex: 0 0 100%;
        position: relative;
        top: 0;
    }

    .product-image, .no-image {
        width: 60px;
        height: 60px;
    }
    
    .price {
        font-size: 14px;
    }
    
    .btn-detail {
        padding: 4px 10px;
        font-size: 11px;
    }
    
    th, td {
        padding: 10px;
    }
}