/* ============================================
   СТИЛИ ДЛЯ БОКОВОЙ ПАНЕЛИ ФИЛЬТРОВ МАГАЗИНА
   ============================================ */

.shop-page-with-sidebar {
    padding: 40px 0;
}

.shop-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* ============================================
   БОКОВАЯ ПАНЕЛЬ
   ============================================ */

.shop-sidebar {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.shop-sidebar .sidebar-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8732e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-sidebar .sidebar-title i {
    color: #e8732e;
}

/* Виджеты */
.shop-sidebar .widget {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.shop-sidebar .widget:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.shop-sidebar .widget h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-sidebar .widget h4 i {
    color: #e8732e;
    font-size: 14px;
}

/* ============================================
   КАТЕГОРИИ
   ============================================ */

.product-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-categories li {
    margin-bottom: 8px;
}

.product-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f8f8;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.product-categories li a:hover,
.product-categories li.active a {
    background: #e8732e;
    color: #fff;
}

.product-categories li a .count {
    font-size: 12px;
    opacity: 0.7;
}

/* ============================================
   ФИЛЬТР ПО ЦЕНЕ
   ============================================ */

.price-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.price-filter input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.price-filter input[type="number"]:focus {
    border-color: #e8732e;
    outline: none;
}

.price-filter span {
    color: #999;
    font-weight: 500;
}

.apply-filter {
    width: 100%;
    padding: 12px 20px;
    background: #e8732e;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-filter:hover {
    background: #d16525;
    transform: translateY(-2px);
}

/* ============================================
   ФИЛЬТР ПО РЕЙТИНГУ
   ============================================ */

.rating-filter {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rating-filter li {
    margin-bottom: 8px;
}

.rating-filter li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f8f8;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.rating-filter li a:hover {
    background: #e8732e;
    color: #fff;
}

.rating-filter .stars {
    color: #ffa800;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-filter li a:hover .stars {
    color: #fff;
}

/* ============================================
   ЧЕКБОКСЫ
   ============================================ */

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e8732e;
}

.checkbox-label:hover {
    color: #e8732e;
}

/* ============================================
   КНОПКА СБРОСА ФИЛЬТРОВ
   ============================================ */

.reset-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-filters:hover {
    background: #e8732e;
    color: #fff;
    border-color: #e8732e;
}

.reset-filters i {
    font-size: 12px;
}

/* ============================================
   ВЕРХНЯЯ ПАНЕЛЬ МАГАЗИНА
   ============================================ */

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.toolbar-left {
    font-size: 14px;
    color: #666;
}

.toolbar-right select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.toolbar-right select:focus {
    border-color: #e8732e;
    outline: none;
}

/* ============================================
   СЕТКА ТОВАРОВ
   ============================================ */

.products-grid {
    min-height: 400px;
}

/* Сообщение "Товары не найдены" */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.no-products h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 10px;
}

.no-products p {
    color: #666;
    font-size: 16px;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* Планшеты */
@media (max-width: 1024px) {
    .shop-wrapper {
        grid-template-columns: 240px 1fr;
        gap: 20px;
    }
    
    .shop-sidebar {
        top: 80px;
    }
}

/* Маленькие планшеты и большие телефоны */
@media (max-width: 768px) {
    .shop-wrapper {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .shop-sidebar {
        position: static;
        margin-bottom: 20px;
    }
    
    .shop-toolbar {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .toolbar-right {
        width: 100%;
    }
    
    .toolbar-right select {
        width: 100%;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    .shop-page-with-sidebar {
        padding: 20px 0;
    }
    
    .shop-wrapper {
        padding: 0 10px;
    }
    
    .shop-sidebar {
        padding: 15px;
    }
    
    .price-filter {
        flex-direction: column;
        gap: 8px;
    }
    
    .price-filter span {
        display: none;
    }
}

/* ============================================
   МОБИЛЬНАЯ КНОПКА ФИЛЬТРОВ (опциональная)
   ============================================ */

.mobile-filter-toggle {
    display: none;
    width: 100%;
    padding: 15px 20px;
    background: #e8732e;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-filter-toggle i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: block;
    }
    
    .shop-sidebar {
        display: none;
    }
    
    .shop-sidebar.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9999;
        background: #fff;
        overflow-y: auto;
        padding: 20px;
        animation: slideIn 0.3s ease;
    }
    
    .shop-sidebar.active .close-sidebar {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 24px;
        background: none;
        border: none;
        cursor: pointer;
        color: #333;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ СТИЛИ
   ============================================ */

/* Счетчик товаров в категориях */
.count {
    background: rgba(232, 115, 46, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* Активные фильтры */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.active-filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #e8732e;
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.active-filter-tag button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

.active-filter-tag button:hover {
    transform: scale(1.2);
}




