.main-content { max-width: 1300px; margin: 30px auto; padding: 0 20px; }
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.breadcrumbs a:hover { color: #fff; }

.catalog-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}
@media (min-width: 1025px) {
    .catalog-layout { gap: 36px; }
}

@media (max-width: 1024px) {
    .catalog-layout { flex-direction: column; }
}

/* ——— Сайдбар фильтров (ПК) ——— */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}
.sidebar > form,
.sidebar form.catalog-filters {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

@media (max-width: 1024px) {
    .sidebar {
        width: 100%;
        max-width: 360px;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        background: #110c24;
        z-index: 200;
        padding: 24px 20px 32px;
        overflow-y: auto;
        transition: left 0.35s ease;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
    }
    .sidebar.open { left: 0; }
    .sidebar > form { gap: 16px; }
}

.filter-block {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}
.filter-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}
.filter-title svg { flex-shrink: 0; opacity: 0.7; }

.filter-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px 14px;
    color: #fff;
    outline: none;
    font-size: 14px;
    transition: border-color var(--transition);
}
.filter-input:focus { border-color: var(--accent); }

.range-group {
    display: flex;
    gap: 12px;
    align-items: center;
}
.range-group .filter-input { flex: 1; min-width: 0; }
.range-group > span {
    flex-shrink: 0;
    color: var(--text-muted);
    font-size: 14px;
    padding: 0 2px;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px 0;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px 0;
    margin: 0 -4px;
    scrollbar-width: thin;
}
.category-list::-webkit-scrollbar { width: 6px; }
.category-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

.category-list a {
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--text-muted);
    transition: background var(--transition), color var(--transition);
}
.category-list a:hover,
.category-list a.active {
    background: rgba(108, 92, 231, 0.15);
    color: #fff;
}
.category-list a.active {
    font-weight: 600;
    border: 1px solid rgba(108, 92, 231, 0.35);
}

.filter-actions {
    display: flex;
    gap: 12px;
    padding-top: 4px;
}
.filter-actions .btn-reset,
.filter-actions .btn-apply {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all var(--transition);
}
.filter-actions .btn-reset {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.filter-actions .btn-reset:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.filter-actions .btn-apply {
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
}
.filter-actions .btn-apply:hover { background: #7d6ff0; }

.mobile-filter-btn {
    display: none;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}
@media (max-width: 1024px) {
    .mobile-filter-btn { display: flex; }
}

.catalog-main { flex: 1; min-width: 0; }
.catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.catalog-title {
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 641px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 1025px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

.products-grid.list { grid-template-columns: 1fr; }
.product-card.list { display: flex; }
.product-card.list .product-img {
    width: 120px;
    height: 120px;
    aspect-ratio: auto;
    flex-shrink: 0;
}
.product-card.list .product-info { flex: 1; }

.product-rating { font-size: 12px; color: #ffb74d; margin-top: 4px; }

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.page-btn, .page-link {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.page-link.active, .page-btn.active {
    background: var(--accent);
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
