* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', sans-serif;
            font-weight: 300;
        }

        body {
            background-color: #131c29;
            color: #eef2f6;
            line-height: 1.5;
            min-height: 100vh;
            padding-bottom: 85px;
            -webkit-tap-highlight-color: transparent;
        }

        .container {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 12px;
        }

        /* Анимации */
        @keyframes slideDown {
            from { transform: translateY(-100%); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* Header */
        .header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            position: sticky;
            top: 0;
            background-color: #131c29;
            z-index: 100;
            backdrop-filter: blur(12px);
            gap: 8px;
        }

        .logo {
            font-size: 1.4rem;
            font-weight: 350;
            color: #fff;
            text-decoration: none;
            white-space: nowrap;
        }
        .logo span { color: #4884ff; }

        .search-wrap {
            flex: 1 1 200px;
            position: relative;
        }
        .search-box {
            background: #1e2a3a;
            border-radius: 40px;
            padding: 6px 14px;
            display: flex;
            align-items: center;
            border: 1px solid #ffffff0c;
        }
        .search-box i { color: #7f8fa0; margin-right: 8px; font-size: 0.85rem; }
        .search-box input {
            background: transparent;
            border: none;
            width: 100%;
            color: white;
            outline: none;
            font-size: 0.85rem;
        }
        .search-suggestions {
            position: absolute;
            top: 45px;
            left: 0;
            right: 0;
            background: #1a2533f5;
            backdrop-filter: blur(16px);
            border-radius: 16px;
            padding: 8px;
            display: none;
            z-index: 150;
            border: 1px solid #4884ff30;
            max-height: 300px;
            overflow-y: auto;
        }
        .search-suggestions.active { display: block; animation: fadeIn 0.2s; }

        .header-actions {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        .header-icon {
            color: #eef2f6;
            font-size: 1.2rem;
            opacity: 0.8;
            position: relative;
            text-decoration: none;
        }
        .cart-badge {
            position: absolute;
            top: -6px;
            right: -8px;
            background: #4884ff;
            color: white;
            border-radius: 20px;
            padding: 2px 5px;
            font-size: 0.55rem;
            font-weight: 400;
        }

        /* Хлебные крошки */
        .breadcrumbs {
            display: flex;
            gap: 6px;
            padding: 12px 0 6px;
            font-size: 0.75rem;
            opacity: 0.7;
            flex-wrap: wrap;
        }
        .breadcrumbs a { color: #8aa9ff; text-decoration: none; }

        /* Заголовок с фильтрами */
        .catalog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin: 8px 0 12px;
            flex-wrap: wrap;
            gap: 8px;
        }
        .catalog-header h1 {
            font-weight: 300;
            font-size: 1.6rem;
        }
        .catalog-actions {
            display: flex;
            gap: 6px;
            align-items: center;
            flex-wrap: wrap;
        }
        .sort-select {
            background: #1e2a3a;
            color: white;
            border: 1px solid #ffffff15;
            border-radius: 30px;
            padding: 6px 12px;
            font-size: 0.8rem;
            outline: none;
        }
        .view-toggle {
            display: flex;
            gap: 2px;
            background: #1e2a3a;
            border-radius: 30px;
            padding: 2px;
        }
        .view-btn {
            padding: 6px 10px;
            border-radius: 30px;
            background: transparent;
            color: #9aabbf;
            border: none;
            cursor: pointer;
            font-size: 0.85rem;
        }
        .view-btn.active {
            background: #4884ff;
            color: white;
        }

        /* Быстрые фильтры */
        .quick-filters {
            display: flex;
            gap: 6px;
            overflow-x: auto;
            padding: 8px 0;
            margin-bottom: 8px;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }
        .quick-filters::-webkit-scrollbar { display: none; }
        .quick-filter-chip {
            background: #1e2a3a;
            border-radius: 30px;
            padding: 6px 14px;
            border: 1px solid #ffffff10;
            cursor: pointer;
            font-size: 0.8rem;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .quick-filter-chip.active {
            background: #4884ff;
            color: white;
        }
        .quick-filter-chip i { font-size: 0.8rem; }

        /* Основная сетка */
        .catalog-layout {
            display: flex;
            gap: 20px;
            margin-top: 4px;
        }

        /* Сайдбар ПК */
        .sidebar {
            width: 260px;
            flex-shrink: 0;
        }
        .sidebar-section {
            background: #1a2533;
            border-radius: 20px;
            padding: 16px 14px;
            margin-bottom: 14px;
            border: 1px solid #ffffff08;
        }
        .sidebar-title {
            font-weight: 400;
            font-size: 1rem;
            margin-bottom: 14px;
            display: flex;
            justify-content: space-between;
        }
        .filter-group {
            margin-bottom: 18px;
        }
        .filter-label {
            display: block;
            margin-bottom: 8px;
            font-size: 0.8rem;
            opacity: 0.8;
        }
        .price-inputs {
            display: flex;
            gap: 6px;
        }
        .price-inputs input {
            width: 100%;
            background: #0f1722;
            border: 1px solid #ffffff15;
            border-radius: 30px;
            padding: 8px 10px;
            color: white;
            font-size: 0.8rem;
        }
        .price-slider {
            margin: 12px 0;
        }
        .price-slider input {
            width: 100%;
            accent-color: #4884ff;
        }
        .checkbox-item {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 10px;
            cursor: pointer;
            font-size: 0.85rem;
        }
        .checkbox-item input {
            accent-color: #4884ff;
            width: 16px;
            height: 16px;
        }
        .color-filters {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }
        .color-dot {
            width: 28px;
            height: 28px;
            border-radius: 14px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: 0.2s;
        }
        .color-dot.active {
            border-color: #4884ff;
            transform: scale(1.1);
        }
        .apply-filters-btn {
            background: #4884ff;
            color: white;
            border: none;
            width: 100%;
            padding: 12px;
            border-radius: 30px;
            font-weight: 400;
            cursor: pointer;
            margin-top: 6px;
            font-size: 0.9rem;
        }
        .reset-filters {
            text-align: center;
            margin-top: 10px;
            font-size: 0.8rem;
            opacity: 0.7;
            cursor: pointer;
        }

        /* Контент */
        .catalog-content {
            flex: 1;
            min-width: 0;
        }

        .results-info {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            font-size: 0.8rem;
            opacity: 0.8;
        }

        /* Сетка товаров */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
        }
        .product-grid.list-view {
            grid-template-columns: 1fr;
        }

        .product-card {
            background: transparent;
            border-radius: 16px;
            transition: 0.2s;
            cursor: pointer;
            border: 1px solid transparent;
            padding: 6px;
            position: relative;
            min-width: 0;
        }
        .product-card:hover {
            background: #4884ff10;
            box-shadow: 0 0 0 1px #4884ff50;
        }
        .product-img {
            aspect-ratio: 1/1;
            background: #1a2533;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            color: #b6cdf5;
            margin-bottom: 8px;
            position: relative;
        }
        .product-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: #ff4757;
            color: white;
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 0.65rem;
            font-weight: 400;
        }
        .favorite-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: #1e2a3aee;
            width: 26px;
            height: 26px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ff6b6b;
            cursor: pointer;
            backdrop-filter: blur(4px);
            border: 1px solid #ffffff15;
            font-size: 0.8rem;
            transition: 0.2s;
            padding: 0;
            margin: 0;
            appearance: none;
            -webkit-appearance: none;
            font-family: inherit;
        }
        .favorite-btn:hover {
            transform: scale(1.1);
        }
        .favorite-btn.active {
            color: #ff4757;
        }
        .product-price {
            font-size: 1.2rem;
            font-weight: 350;
        }
        .old-price {
            font-size: 0.8rem;
            text-decoration: line-through;
            opacity: 0.5;
            margin-left: 6px;
        }
        .product-name {
            font-weight: 300;
            font-size: 0.8rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .product-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 4px 0 8px;
        }
        .product-sold {
            font-size: 0.7rem;
            color: #8aa2c0;
        }
        .product-rating {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 0.7rem;
        }
        .rating-stars {
            color: #ffb83d;
            letter-spacing: 1px;
        }
        .buy-btn {
            background: #4884ff;
            border: none;
            color: white;
            font-weight: 400;
            padding: 8px 0;
            width: 100%;
            border-radius: 30px;
            font-size: 0.8rem;
            cursor: pointer;
            transition: 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }
        .buy-btn:active {
            background: #3d6ed9;
            transform: scale(0.98);
        }

        /* Список */
        .list-view .product-card {
            display: flex;
            gap: 16px;
            padding: 12px;
        }
        .list-view .product-img {
            width: 100px;
            height: 100px;
            margin-bottom: 0;
            flex-shrink: 0;
        }
        .list-view .product-info {
            flex: 1;
        }
        .list-view .product-name {
            white-space: normal;
            font-size: 1rem;
            margin-bottom: 6px;
        }
        .list-view .buy-btn {
            width: auto;
            padding: 8px 24px;
        }

        /* Пагинация */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 4px;
            margin: 30px 0 15px;
            flex-wrap: wrap;
        }
        .page-item {
            min-width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 18px;
            background: #1e2a3a;
            color: white;
            text-decoration: none;
            font-size: 0.85rem;
            border: 1px solid #ffffff10;
        }
        .page-item.active {
            background: #4884ff;
        }

        /* Мобильные элементы */
        .mobile-filter-btn {
            display: none;
            position: fixed;
            bottom: 90px;
            right: 12px;
            background: #4884ff;
            width: 50px;
            height: 50px;
            border-radius: 25px;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.3rem;
            box-shadow: 0 6px 16px #4884ff40;
            z-index: 90;
            border: none;
            cursor: pointer;
        }

        .mobile-filter-panel {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #1a2533f5;
            backdrop-filter: blur(20px);
            border-radius: 24px 24px 0 0;
            padding: 20px 16px;
            z-index: 200;
            transform: translateY(100%);
            transition: 0.3s;
            max-height: 75vh;
            overflow-y: auto;
            border-top: 1px solid #4884ff50;
        }
        .mobile-filter-panel.active {
            transform: translateY(0);
        }
        .filter-overlay {
            position: fixed;
            inset: 0;
            background: #000000b0;
            backdrop-filter: blur(4px);
            z-index: 150;
            display: none;
        }
        .mobile-filter-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 16px;
        }
        .mobile-filter-header h3 {
            font-weight: 300;
            font-size: 1.2rem;
        }
        .close-filter {
            background: none;
            border: none;
            color: white;
            font-size: 1.3rem;
            cursor: pointer;
        }

        .mobile-bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: #0f1722f0;
            backdrop-filter: blur(20px);
            border-top: 1px solid #ffffff10;
            padding: 6px 10px 10px;
            justify-content: space-around;
            z-index: 80;
        }
        .mobile-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #9aabbf;
            text-decoration: none;
            font-size: 0.6rem;
        }
        .mobile-nav-item i { font-size: 1.3rem; margin-bottom: 2px; }
        .mobile-nav-item.active { color: #4884ff; }

        /* Сравнение товаров */
        .compare-bar {
            position: fixed;
            bottom: 85px;
            left: 50%;
            transform: translateX(-50%);
            background: #1e2a3a;
            border-radius: 40px;
            padding: 8px 16px;
            display: none;
            align-items: center;
            gap: 12px;
            z-index: 85;
            border: 1px solid #4884ff;
            box-shadow: 0 4px 20px #00000080;
            white-space: nowrap;
        }
        .compare-bar.active {
            display: flex;
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 100px;
            left: 16px;
            right: 16px;
            background: #1e2a3af0;
            backdrop-filter: blur(12px);
            border-radius: 40px;
            padding: 10px 18px;
            z-index: 300;
            border: 1px solid #4884ff60;
            transform: translateY(20px);
            opacity: 0;
            transition: 0.3s;
            pointer-events: none;
            text-align: center;
            font-size: 0.85rem;
        }
        .toast.show {
            transform: translateY(0);
            opacity: 1;
        }

        /* Адаптация: на планшетах и телефонах — ровно 2 карточки в ряд (сетка) */
        @media (max-width: 1200px) {
            .product-grid:not(.list-view) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        }
        @media (max-width: 1023px) {
            .product-grid:not(.list-view) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
        }

        @media (max-width: 850px) {
            .sidebar { display: none; }
            .mobile-filter-btn { display: flex; }
        }

        @media (max-width: 768px) {
            .container { padding: 0 8px; }
            .header { padding: 8px 0; }
            .logo { font-size: 1.3rem; }
            .search-wrap { order: 3; width: 100%; margin: 4px 0; }
            .product-grid:not(.list-view) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
            .catalog-header h1 { font-size: 1.3rem; }
            .sort-select { padding: 5px 10px; font-size: 0.75rem; }
            .mobile-bottom-nav { display: flex; }
            body { padding-bottom: 80px; }
            .product-img { font-size: 1.8rem; }
            .product-price { font-size: 1.1rem; }
            .buy-btn { padding: 7px 0; font-size: 0.75rem; }
            .favorite-btn { width: 24px; height: 24px; font-size: 0.75rem; }
        }

        @media (max-width: 480px) {
            .catalog-header h1 { font-size: 1.2rem; }
            .view-toggle .view-btn span { display: none; }
            .view-btn i { margin: 0; }
        }

        /* Подсказка */
        .tooltip {
            position: relative;
        }
        .tooltip:hover::after {
            content: attr(data-tooltip);
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: #1e2a3a;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 0.7rem;
            white-space: nowrap;
            margin-bottom: 6px;
        }

        .search-suggestions .suggestion-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 14px;
            border-radius: 14px;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
        }
        .search-suggestions .suggestion-item:hover {
            background: #4884ff20;
        }
