* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --bg-primary: #f5f7fa;
            --bg-secondary: #ffffff;
            --border-light: #dbe4ee;
            --border-hover: #a0c4e2;
            --accent-blue: #5b9bd5;
            --accent-light: #e8f0fe;
            --text-primary: #2c3e50;
            --text-secondary: #6b7b8b;
            --text-light: #95a5a6;
            --success: #2ecc71;
            --warning: #f39c12;
            --danger: #e74c3c;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
            --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
            --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.08);
            --header-height: 64px;
            --bottom-nav-height: 72px;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.5;
            font-weight: 400;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Тонкий и легкий стиль */
        h1, h2, h3, h4 {
            font-weight: 500;
            letter-spacing: -0.01em;
        }

        p {
            font-weight: 400;
            color: var(--text-secondary);
        }

        /* ===== HEADER ===== */
        .header {
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border-light);
            padding: 0 20px;
            height: var(--header-height);
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(8px);
            background: rgba(255, 255, 255, 0.92);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo-icon {
            font-size: 26px;
            color: var(--accent-blue);
        }

        .logo-text {
            font-size: 20px;
            font-weight: 400;
            color: var(--text-primary);
            letter-spacing: -0.02em;
        }

        .logo-text span {
            font-weight: 300;
            color: var(--text-light);
        }

        .header-actions {
            display: flex;
            align-items: center;
            gap: 18px;
        }

        .header-actions a {
            color: var(--text-secondary);
            font-size: 20px;
            transition: all 0.2s ease;
            text-decoration: none;
            position: relative;
        }

        .header-actions a:hover {
            color: var(--accent-blue);
        }

        .cart-badge {
            position: relative;
        }

        .cart-count {
            position: absolute;
            top: -6px;
            right: -8px;
            background: var(--accent-blue);
            color: white;
            font-size: 11px;
            font-weight: 400;
            width: 18px;
            height: 18px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 1px solid white;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        /* Навигация десктоп */
        .desktop-nav {
            display: flex;
            gap: 32px;
            margin-left: 40px;
        }

        .desktop-nav a {
            text-decoration: none;
            color: var(--text-secondary);
            font-weight: 400;
            font-size: 16px;
            transition: all 0.2s ease;
            padding: 8px 0;
            border-bottom: 2px solid transparent;
        }

        .desktop-nav a:hover,
        .desktop-nav a.active {
            color: var(--accent-blue);
            border-bottom-color: var(--accent-blue);
        }

        .header-left {
            display: flex;
            align-items: center;
        }

        /* Поиск */
        .search-wrapper {
            flex: 1;
            max-width: 420px;
            margin: 0 20px;
        }

        .search-box {
            display: flex;
            align-items: center;
            background: var(--bg-primary);
            border: 1px solid var(--border-light);
            border-radius: 24px;
            padding: 8px 16px;
            transition: all 0.2s ease;
        }

        .search-box:focus-within {
            border-color: var(--accent-blue);
            background: white;
            box-shadow: var(--shadow-sm);
        }

        .search-box i {
            color: var(--text-light);
            font-size: 16px;
            margin-right: 10px;
        }

        .search-box input {
            border: none;
            background: transparent;
            outline: none;
            font-size: 15px;
            width: 100%;
            font-weight: 400;
            color: var(--text-primary);
        }

        .search-box input::placeholder {
            color: var(--text-light);
            font-weight: 300;
        }

        /* Быстрые фильтры - КАРУСЕЛЬ */
        .quick-filters-wrapper {
            padding: 16px 0 8px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            -webkit-overflow-scrolling: touch;
            scroll-snap-type: x mandatory;
        }

        .quick-filters-wrapper::-webkit-scrollbar {
            display: none;
        }

        .quick-filters {
            display: flex;
            gap: 8px;
            padding: 4px 20px;
            scroll-snap-align: start;
        }

        .filter-chip {
            background: var(--bg-secondary);
            border: 1px solid var(--border-light);
            border-radius: 24px;
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 400;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            scroll-snap-align: start;
        }

        .filter-chip i {
            font-size: 12px;
            color: var(--accent-blue);
        }

        .filter-chip:hover,
        .filter-chip.active {
            background: var(--accent-light);
            border-color: var(--accent-blue);
            color: var(--accent-blue);
        }

        /* ===== HERO SECTION ===== */
        .hero {
            padding: 34px 24px;
            margin: 0 0 24px 0;
            background: transparent;
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            position: relative;
            overflow: hidden;
            min-height: 400px;
            isolation: isolate;
        }

        .diagonal-hero-bg {
            position: absolute;
            inset: 0;
            z-index: 0;
            background: linear-gradient(120deg, #1b3c73 0%, #255ea8 55%, #1b4f88 100%);
            clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
        }

        .diagonal-hero-bg::before {
            content: "";
            position: absolute;
            inset: 0;
            background-image: var(--hero-custom-bg, none);
            background-size: cover;
            background-position: center;
            opacity: 0.22;
            filter: saturate(0.95) contrast(1.05);
        }

        .diagonal-hero-bg::after {
            content: "";
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 85% 20%, rgba(147, 197, 253, 0.24), transparent 42%),
                radial-gradient(circle at 15% 70%, rgba(191, 219, 254, 0.16), transparent 48%),
                linear-gradient(145deg, rgba(15, 23, 42, 0.22), rgba(30, 64, 175, 0.26));
        }

        .hero-content {
            max-width: 500px;
            position: relative;
            z-index: 2;
        }

        .hero-badge {
            display: inline-block;
            background: rgba(255, 255, 255, 0.18);
            color: #f1f5f9;
            font-size: 13px;
            font-weight: 400;
            padding: 4px 12px;
            border-radius: 20px;
            margin-bottom: 16px;
            border: 0.5px solid rgba(255, 255, 255, 0.38);
            backdrop-filter: blur(4px);
        }

        .hero h1 {
            font-size: 36px;
            font-weight: 500;
            line-height: 1.2;
            margin-bottom: 16px;
            color: #ffffff;
            text-shadow: 0 2px 10px rgba(15, 23, 42, 0.25);
        }

        .hero h1 strong {
            font-weight: 500;
            color: #bfdbfe;
        }

        .hero p {
            font-size: 16px;
            margin-bottom: 24px;
            max-width: 460px;
            color: #e2e8f0;
        }

        .hero-stats {
            display: flex;
            gap: 24px;
            margin-bottom: 24px;
        }

        .stat-item {
            display: flex;
            flex-direction: column;
        }

        .stat-value {
            font-size: 24px;
            font-weight: 500;
            color: #f8fafc;
        }

        .stat-label {
            font-size: 13px;
            color: #cbd5e1;
        }

        .hero-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: #ffffff;
            color: #1e4f8f;
            text-decoration: none;
            padding: 12px 24px;
            border-radius: 40px;
            font-weight: 500;
            border: 1px solid rgba(255, 255, 255, 0.9);
            transition: all 0.2s ease;
            box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
        }

        .hero-btn i {
            font-size: 14px;
            transition: transform 0.2s ease;
        }

        .hero-btn:hover {
            border-color: #dbeafe;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
            transform: scale(1.02);
        }

        .hero-btn:hover i {
            transform: translateX(4px);
        }

        .hero-image {
            font-size: 100px;
            color: rgba(255, 255, 255, 0.2);
            position: absolute;
            right: 10px;
            top: 50%;
            z-index: 2;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            transform: translate(-28px, -50%);
            pointer-events: none;
        }

        .hero-logo {
            width: 520px;
            height: auto;
            display: block;
            opacity: 0.95;
            filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.08));
            user-select: none;
            -webkit-user-drag: none;
        }

        .hero-logo-caption {
            margin-top: -10px;
            margin-left: 128px;
            padding: 8px 12px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.22);
            color: #e2e8f0;
            font-size: 12px;
            line-height: 1.35;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow-sm);
            max-width: 320px;
        }

        .hero-logo-caption i {
            color: #93c5fd;
            font-size: 14px;
            flex-shrink: 0;
        }

        .stars {
            position: absolute;
            inset: 0;
            overflow: hidden;
            z-index: 0;
            opacity: 0.7;
        }

        .stars > div {
            position: absolute;
            top: 0;
            left: 0;
            background: transparent;
            animation: starsMove 120s linear infinite;
        }

        .stars > .small {
            width: 1px;
            height: 1px;
            box-shadow:
                40px 30px rgba(255,255,255,.85), 120px 90px rgba(255,255,255,.7), 260px 60px rgba(255,255,255,.8),
                380px 140px rgba(255,255,255,.75), 520px 45px rgba(255,255,255,.85), 680px 120px rgba(255,255,255,.7),
                840px 55px rgba(255,255,255,.8), 980px 150px rgba(255,255,255,.75), 1140px 80px rgba(255,255,255,.85),
                1280px 40px rgba(255,255,255,.75), 90px 220px rgba(255,255,255,.8), 230px 260px rgba(255,255,255,.75),
                360px 210px rgba(255,255,255,.8), 490px 280px rgba(255,255,255,.75), 630px 235px rgba(255,255,255,.85),
                770px 260px rgba(255,255,255,.8), 910px 225px rgba(255,255,255,.7), 1060px 290px rgba(255,255,255,.85),
                1210px 240px rgba(255,255,255,.75), 1360px 275px rgba(255,255,255,.8);
        }

        .stars > .medium {
            width: 2px;
            height: 2px;
            opacity: .9;
            animation-duration: 170s;
            box-shadow:
                70px 70px rgba(191,219,254,.85), 310px 120px rgba(191,219,254,.75), 560px 95px rgba(191,219,254,.85),
                820px 130px rgba(191,219,254,.8), 1050px 70px rgba(191,219,254,.9), 1290px 130px rgba(191,219,254,.75),
                170px 250px rgba(191,219,254,.85), 440px 300px rgba(191,219,254,.75), 700px 245px rgba(191,219,254,.85),
                980px 310px rgba(191,219,254,.8), 1240px 255px rgba(191,219,254,.85);
        }

        .stars > .big {
            width: 3px;
            height: 3px;
            border-radius: 999px;
            opacity: .95;
            animation-duration: 230s;
            box-shadow:
                150px 100px rgba(255,255,255,.9), 460px 70px rgba(255,255,255,.95), 760px 110px rgba(255,255,255,.88),
                1080px 90px rgba(255,255,255,.95), 1340px 120px rgba(255,255,255,.9), 280px 260px rgba(255,255,255,.95),
                640px 240px rgba(255,255,255,.9), 990px 290px rgba(255,255,255,.95), 1320px 260px rgba(255,255,255,.88);
        }

        @keyframes starsMove {
            from { transform: translateY(0); }
            to { transform: translateY(-420px); }
        }

        /* ===== ОСНОВНОЙ КОНТЕНТ ===== */
        .main-content {
            flex: 1;
            max-width: 1400px;
            margin: 0 auto;
            width: 100%;
        }

        /* Категории — карусель карточек */
        .category-carousel-wrap {
            position: relative;
            margin: 0 20px 24px;
        }

        .category-carousel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .category-carousel-title {
            font-size: 18px;
            font-weight: 500;
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }

        .category-carousel-all {
            color: var(--text-light);
            text-decoration: none;
            font-size: 14px;
            transition: color .2s ease;
        }

        .category-carousel-all:hover {
            color: var(--accent-blue);
        }

        .category-carousel {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 2px 2px 6px;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none;
        }

        .category-carousel::-webkit-scrollbar {
            display: none;
        }

        .category-card {
            flex: 0 0 180px;
            scroll-snap-align: start;
            background: var(--bg-secondary);
            border: 0.5px solid rgba(91,155,213,0.12);
            border-radius: 16px;
            box-shadow: var(--shadow-sm);
            text-decoration: none;
            color: inherit;
            padding: 8px;
            transition: all .2s ease;
            position: relative;
        }

        .category-card:hover {
            border-color: var(--border-hover);
            box-shadow: var(--shadow-md);
            transform: translateY(-2px);
        }

        .category-card-media {
            width: 100%;
            aspect-ratio: 10 / 12;
            min-height: 68px;
            border-radius: 12px;
            background: linear-gradient(145deg, #f0f5fa 0%, #e6eef5 100%);
            border: 0;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
        }

        .category-card-media img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }

        .category-card-icon {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            background: rgba(255,255,255,0.75);
            border: 1px solid rgba(91,155,213,0.18);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-blue);
            font-size: 18px;
        }

        .category-card-name {
            font-size: 13px;
            font-weight: 500;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            padding-right: 44px;
        }

        .category-card-count {
            position: absolute;
            right: 10px;
            bottom: 10px;
            background: var(--accent-light);
            color: var(--accent-blue);
            border: 0.5px solid rgba(91,155,213,0.18);
            font-size: 11px;
            padding: 3px 7px;
            border-radius: 999px;
        }

        .carousel-nav {
            display: none;
        }

        /* Заголовок секции */
        .section-header {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            margin-bottom: 16px;
            padding: 0 20px;
        }

        .section-header h2 {
            font-size: 22px;
            font-weight: 400;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .section-header h2 i {
            color: var(--accent-blue);
            font-size: 20px;
        }

        .section-header a {
            text-decoration: none;
            color: var(--text-light);
            font-size: 14px;
            font-weight: 400;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: color 0.2s;
        }

        .section-header a:hover {
            color: var(--accent-blue);
        }

        /* Сетка карточек — mobile first 2 колонки, на всю ширину */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1px;
            background: var(--border-light);
            margin-bottom: 1px;
        }

        /* Карточка товара - ЗАКРУГЛЁННЫЕ УГЛЫ */
        .product-card {
            background: var(--bg-secondary);
            padding: 16px 12px;
            transition: all 0.2s ease;
            text-decoration: none;
            color: inherit;
            display: flex;
            flex-direction: column;
            position: relative;
            border: none;
            border-radius: 16px;
            margin: 8px;
            box-shadow: var(--shadow-sm);
        }

        .product-card:hover {
            box-shadow: var(--shadow-lg);
            transform: translateY(-2px);
            z-index: 10;
        }

        .product-badges {
            position: absolute;
            top: 12px;
            left: 12px;
            display: flex;
            gap: 4px;
            z-index: 2;
        }

        .badge {
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 10px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            background: white;
            border: 0.5px solid var(--border-light);
        }

        .badge.hot {
            background: #fee2e2;
            color: #dc2626;
            border-color: #fecaca;
        }

        .badge.new {
            background: #dbeafe;
            color: #2563eb;
            border-color: #bfdbfe;
        }

        .badge.sale {
            background: #fef3c7;
            color: #d97706;
            border-color: #fde68a;
        }

        .product-image {
            width: 100%;
            aspect-ratio: 1 / 1;
            background: linear-gradient(145deg, #f0f5fa 0%, #e6eef5 100%);
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 12px;
            border: 0.5px solid rgba(91, 155, 213, 0.15);
            position: relative;
            overflow: hidden;
        }

        .product-image i {
            font-size: 42px;
            color: var(--accent-blue);
            opacity: 0.7;
            transition: transform 0.3s ease;
        }

        .product-card:hover .product-image i {
            transform: scale(1.1);
        }

        .product-category {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            color: var(--text-light);
            margin-bottom: 6px;
            font-weight: 400;
        }

        .product-title {
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 6px;
            line-height: 1.3;
            color: var(--text-primary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .product-price {
            margin-top: auto;
            display: flex;
            align-items: baseline;
            gap: 6px;
            flex-wrap: wrap;
        }

        .current-price {
            font-size: 20px;
            font-weight: 500;
            color: var(--accent-blue);
        }

        .old-price {
            font-size: 13px;
            color: var(--text-light);
            text-decoration: line-through;
            font-weight: 400;
        }

        .discount-badge {
            background: var(--danger);
            color: white;
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 10px;
            font-weight: 500;
        }

        .product-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 8px;
            font-size: 12px;
            color: var(--text-light);
        }

        .rating {
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .rating i {
            color: #ffc107;
            font-size: 11px;
        }

        .sales-count {
            display: flex;
            align-items: center;
            gap: 3px;
        }

        .wishlist-btn {
            margin-left: auto;
            color: var(--text-light);
            background: none;
            border: none;
            font-size: 16px;
            cursor: pointer;
            padding: 4px;
            transition: all 0.2s;
        }

        .wishlist-btn:hover {
            color: var(--danger);
            transform: scale(1.1);
        }

        .wishlist-btn.active {
            color: var(--danger);
        }

        /* Секция с акциями */
        .deals-section {
            padding: 0 20px;
            margin: 32px 0;
        }

        .deals-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 16px;
        }

        .deal-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-light);
            border-radius: 20px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            transition: all 0.2s;
        }

        .deal-card:hover {
            border-color: var(--border-hover);
            box-shadow: var(--shadow-hover);
        }

        .deal-header {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 12px;
        }

        .deal-header i {
            color: var(--accent-blue);
            font-size: 20px;
        }

        .deal-title {
            font-size: 16px;
            font-weight: 500;
        }

        .deal-timer {
            background: var(--bg-primary);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 13px;
            color: var(--text-secondary);
            margin-left: auto;
        }

        .deal-products {
            display: flex;
            gap: 12px;
            margin-top: 12px;
        }

        .deal-product {
            flex: 1;
            text-align: center;
        }

        .deal-product-image {
            width: 100%;
            aspect-ratio: 1;
            background: var(--bg-primary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
        }

        .deal-product-image i {
            font-size: 28px;
            color: var(--accent-blue);
            opacity: 0.7;
        }

        .deal-price {
            font-weight: 500;
            color: var(--accent-blue);
        }

        /* Баннер */
        .banner {
            background: var(--bg-secondary);
            border: 1px solid var(--border-light);
            margin: 24px 20px;
            border-radius: 20px;
            padding: 24px 28px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
            position: relative;
            overflow: hidden;
        }

        .banner::before {
            content: '';
            position: absolute;
            right: -50px;
            top: -50px;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(91,155,213,0.08) 0%, transparent 70%);
            border-radius: 50%;
        }

        .banner-green {
            background: linear-gradient(135deg, #ecfdf3 0%, #dcfce7 100%);
            border-color: rgba(16,185,129,0.25);
        }

        .banner-green::before {
            background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
        }

        .banner-text h3 {
            font-size: 20px;
            font-weight: 400;
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .banner-text p {
            font-size: 14px;
        }

        .banner-points {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 12px;
            position: relative;
            z-index: 2;
        }

        .banner-point {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(255,255,255,0.72);
            border: 1px solid rgba(16,185,129,0.22);
            color: rgba(6,95,70,0.95);
            padding: 6px 10px;
            border-radius: 999px;
            font-size: 12px;
            white-space: nowrap;
        }

        .banner-point i {
            color: rgba(16,185,129,0.95);
        }

        .banner-btn {
            background: var(--accent-blue);
            color: white;
            border: none;
            padding: 12px 28px;
            border-radius: 30px;
            font-size: 15px;
            font-weight: 400;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid transparent;
            text-decoration: none;
            display: inline-block;
            position: relative;
            z-index: 2;
        }

        .banner-btn:hover {
            background: #4a8bc7;
            box-shadow: var(--shadow-hover);
        }

        .banner-btn-green {
            background: #10b981;
        }
        .banner-btn-green:hover {
            background: #0ea371;
        }

        /* Преимущества */
        .features {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 1px;
            background: var(--border-light);
            margin: 24px 0 1px;
        }

        .feature-item {
            background: var(--bg-secondary);
            padding: 24px 16px;
            text-align: center;
        }

        .feature-icon {
            font-size: 28px;
            color: var(--accent-blue);
            margin-bottom: 12px;
            opacity: 0.8;
        }

        .feature-title {
            font-size: 15px;
            font-weight: 500;
            margin-bottom: 4px;
        }

        .feature-desc {
            font-size: 12px;
            color: var(--text-light);
        }

        /* Недавно просмотренные */
        .recently-viewed {
            padding: 0 20px;
            margin: 32px 0;
        }

        .recently-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
        }

        .recently-scroll {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-bottom: 8px;
        }

        .recently-scroll::-webkit-scrollbar {
            display: none;
        }

        .recently-item {
            flex: 0 0 120px;
            background: var(--bg-secondary);
            border: 1px solid var(--border-light);
            border-radius: 16px;
            padding: 12px;
            text-align: center;
            transition: all 0.2s;
        }

        .recently-item:hover {
            border-color: var(--border-hover);
            box-shadow: var(--shadow-sm);
        }

        .recently-image {
            width: 100%;
            aspect-ratio: 1;
            background: var(--bg-primary);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 8px;
        }

        .recently-image i {
            font-size: 32px;
            color: var(--accent-blue);
            opacity: 0.7;
        }

        .recently-price {
            font-weight: 500;
            font-size: 14px;
            color: var(--accent-blue);
        }

        /* ===== FOOTER ===== */
        .footer {
            background: var(--bg-secondary);
            border-top: 1px solid var(--border-light);
            padding: 28px 20px;
            margin-top: 20px;
        }

        .footer-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
        }

        .footer-copyright {
            color: var(--text-light);
            font-size: 14px;
            font-weight: 400;
        }

        .footer-links {
            display: flex;
            gap: 28px;
            flex-wrap: wrap;
        }

        .footer-links a {
            text-decoration: none;
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 400;
            transition: color 0.2s;
        }

        .footer-links a:hover {
            color: var(--accent-blue);
        }

        .payment-icons {
            display: flex;
            gap: 16px;
            color: var(--text-light);
            font-size: 22px;
        }

        /* ===== НИЖНЕЕ МЕНЮ (МОБИЛЬНОЕ) ===== */
        .bottom-nav {
            display: none;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--bottom-nav-height);
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--border-light);
            padding: 8px 16px;
            z-index: 99;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.02);
        }

        .bottom-nav-inner {
            display: flex;
            align-items: center;
            justify-content: space-around;
            max-width: 500px;
            margin: 0 auto;
            height: 100%;
        }

        .bottom-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: var(--text-light);
            font-size: 12px;
            transition: color 0.2s;
            gap: 4px;
            position: relative;
        }

        .bottom-nav-item i {
            font-size: 22px;
        }

        .bottom-nav-item.active {
            color: var(--accent-blue);
        }

        .bottom-nav-item span {
            font-weight: 400;
            font-size: 11px;
        }

        .bottom-nav-badge {
            position: absolute;
            top: -2px;
            right: -8px;
            background: var(--danger);
            color: white;
            font-size: 10px;
            min-width: 16px;
            height: 16px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 0 4px;
            border: 1px solid white;
        }

        /* Модальное окно быстрого просмотра */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: 24px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            padding: 24px;
            position: relative;
            border: 1px solid var(--border-light);
            animation: modalSlide 0.3s ease;
        }

        @keyframes modalSlide {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            background: none;
            border: none;
            font-size: 20px;
            color: var(--text-light);
            cursor: pointer;
        }

        /* Toast уведомления */
        .toast {
            position: fixed;
            bottom: calc(var(--bottom-nav-height) + 20px);
            left: 50%;
            transform: translateX(-50%);
            background: var(--text-primary);
            color: white;
            padding: 12px 24px;
            border-radius: 30px;
            font-size: 14px;
            font-weight: 400;
            z-index: 1001;
            opacity: 0;
            transition: opacity 0.3s;
            box-shadow: var(--shadow-lg);
            white-space: nowrap;
        }

        .toast.show {
            opacity: 1;
        }

        /* ===== МЕДИА-ЗАПРОСЫ ===== */
        @media (min-width: 900px) {
            .hero {
                min-height: 330px;
                padding-right: 420px;
            }

            .hero-logo {
                width: 470px;
            }

            .product-grid {
                grid-template-columns: repeat(3, 1fr);
            }
            .deals-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .features {
                grid-template-columns: repeat(4, 1fr);
            }
            .hero {
                padding: 48px 36px;
            }
        }

        @media (min-width: 1024px) {
            .category-card {
                flex-basis: 190px;
            }

            .carousel-nav {
                display: inline-flex;
                position: absolute;
                top: 44px;
                width: 38px;
                height: 38px;
                border-radius: 12px;
                border: 1px solid var(--border-light);
                background: rgba(255,255,255,0.9);
                backdrop-filter: blur(8px);
                align-items: center;
                justify-content: center;
                color: var(--text-secondary);
                cursor: pointer;
                box-shadow: var(--shadow-sm);
                z-index: 5;
            }

            .carousel-nav:hover {
                color: var(--accent-blue);
                border-color: var(--border-hover);
            }

            .carousel-nav.prev { left: -10px; }
            .carousel-nav.next { right: -10px; }
        }

        @media (min-width: 1024px) {
            .hero {
                padding-right: 480px;
            }

            .hero-logo {
                width: 520px;
            }

            .product-grid {
                grid-template-columns: repeat(4, 1fr);
                border-radius: 13px;
            }
        }

        @media (min-width: 1280px) {
            .product-grid {
                grid-template-columns: repeat(5, 1fr);
            }
        }

        @media (max-width: 767px) {
            body {
                padding: 0;
            }
            
            .header {
                padding: 0 12px;
            }
            
            .desktop-nav {
                display: none;
            }
            
            .search-wrapper {
                display: none;
            }
            
            .hero {
                padding: 28px 16px;
                margin: 0 8px;
                border-radius: 18px;
                min-height: 360px;
            }
            
            .hero h1 {
                font-size: 26px;
            }
            
            .hero-image {
                display: none;
            }

            .category-carousel-wrap { margin: 0 12px 18px; }
            .category-card { flex-basis: 150px; }
            
            .section-header {
                padding: 0 12px;
            }
            
            .deals-section {
                padding: 0 12px;
            }
            
            .banner {
                margin: 24px 12px;
                padding: 20px;
            }
            
            .recently-viewed {
                padding: 0 12px;
            }
            
            .footer {
                padding-bottom: calc(var(--bottom-nav-height) + 20px);
            }
            
            .bottom-nav {
                display: block;
            }
            
            .footer-links {
                margin-top: 16px;
                width: 100%;
            }

            /* Убираем отступы у контейнера */
            .main-content {
                padding: 0;
            }

            /* Сбрасываем фон для сетки */
            .product-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px;
                background: transparent;
                margin-bottom: 0;
                padding: 12px;
            }

            .product-card {
                margin: 0;
                border-radius: 16px;
            }

            .features {
                margin: 0;
            }

            .feature-item {
                border-bottom: 1px solid var(--border-light);
                border-right: 1px solid var(--border-light);
            }

            .feature-item:nth-child(2n) {
                border-right: none;
            }
        }

        @media (max-width: 380px) {
            .product-card {
                padding: 12px 8px;
            }
            .current-price {
                font-size: 18px;
            }
        }

        /* Анимации */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .fade-in {
            animation: fadeIn 0.5s ease;
        }

        /* Индикатор загрузки */
        .loading-spinner {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-light);
            border-top-color: var(--accent-blue);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }
