/* ===== Block 1 ===== */
:root {
            --dark-dashboard-1: #171F20;
            --dark-dashboard-2: #263032;
            --accent-cyan: #40D4E0;
            --hover-cyan: #2AB0BC;
            --text-light: #E0E6E8;
            --metallic-accent: #364345;
            --success-green: #2CC04A;
            --timer-red: #940924;
            --card-bg: #253031;
            --card-border: #455253;
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            margin: 0;
            padding: 0;
            background: var(--dark-dashboard-1);
            color: var(--text-light);
            min-height: 100vh;
            line-height: 1.5;
        }

        main {
            padding: 70px 0 10px;
            background: var(--dark-dashboard-1);
        }

        .products-container {
            max-width: 1240px;
            margin: 10px auto;
            padding: 0 20px;
        }

        .breadcrumb {
            margin-bottom: 20px;
            padding: 10px 0;
            font-size: 14px;
            color: var(--text-light);
        }

        .breadcrumb a {
            color: var(--accent-cyan);
            text-decoration: none;
        }

        .breadcrumb a:hover {
            text-decoration: underline;
        }

        .breadcrumb span {
            margin: 0 8px;
            color: var(--metallic-accent);
        }

        .products-container h1 {
            font-size: 28px;
            font-weight: 600;
            color: var(--accent-cyan);
            margin: 0 0 20px;
            padding: 15px 0;
            text-align: center;
            border-bottom: 2px solid var(--card-border);
        }

        .filter-sort-box {
            display: flex;
            align-items: center;
            margin-bottom: 25px;
            background: var(--card-bg);
            padding: 15px;
            border-radius: 8px;
            gap: 15px;
            white-space: nowrap;
            border: 1px solid var(--card-border);
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            flex-wrap: wrap;
        }

        .filter-sort-box label {
            margin-right: 8px;
            font-size: 14px;
            color: var(--text-light);
            font-weight: 500;
        }

        .filter-sort-box select {
            padding: 8px 12px;
            font-size: 13px;
            border: 1px solid var(--card-border);
            border-radius: 6px;
            background: var(--dark-dashboard-2);
            color: var(--text-light);
            cursor: pointer;
            max-width: 140px;
            transition: all 0.2s ease;
        }

        .filter-sort-box select:focus {
            outline: none;
            border-color: var(--accent-cyan);
            box-shadow: 0 0 0 2px rgba(64, 212, 224, 0.2);
        }

        .filter-sort-box select:hover {
            border-color: var(--hover-cyan);
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .product-card {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            padding: 15px;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            transform: translateZ(0);
        }

        .product-card:hover {
            transform: translateY(-4px) translateZ(0);
            box-shadow: 0 8px 25px rgba(64, 212, 224, 0.15);
            border-color: var(--accent-cyan);
        }

        .product-image {
            height: 200px;
            width: 100%;
            background: var(--dark-dashboard-2);
            border-radius: 8px;
            margin: 0 auto 15px;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            border: 1px solid var(--card-border);
            transition: all 0.2s ease;
        }

        .product-card:hover .product-image {
            border-color: var(--accent-cyan);
        }

        .product-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-light);
            margin-bottom: 12px;
            height: 44px;
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            line-height: 1.4;
        }

        .product-price {
            margin-bottom: 15px;
        }

        .price-dropdown {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--card-border);
            border-radius: 6px;
            font-size: 14px;
            color: var(--text-light);
            background: var(--dark-dashboard-2);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .price-dropdown:hover, .price-dropdown:focus {
            border-color: var(--accent-cyan);
            outline: none;
            box-shadow: 0 0 0 2px rgba(64, 212, 224, 0.2);
        }

        .fixed-price {
            font-size: 18px;
            font-weight: 600;
            color: var(--accent-cyan);
            text-align: center;
            padding: 10px;
            background: var(--dark-dashboard-2);
            border: 1px solid var(--card-border);
            border-radius: 6px;
        }

        .action-btn {
            background: var(--accent-cyan);
            border: none;
            color: #fff;
            padding: 12px;
            border-radius: 8px;
            width: 100%;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s ease;
            margin-top: auto;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .action-btn:hover {
            background: var(--hover-cyan);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(64, 212, 224, 0.3);
        }

        .action-btn:active {
            transform: translateY(0);
        }

        .action-btn.added {
            background: var(--success-green) !important;
            transform: scale(0.98);
        }

        .no-products {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-light);
            font-size: 18px;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 12px;
            margin-top: 40px;
        }

        .no-products i {
            font-size: 48px;
            color: var(--accent-cyan);
            margin-bottom: 20px;
            display: block;
        }

        .products-count {
            text-align: center;
            margin-bottom: 20px;
            color: var(--text-light);
            font-size: 14px;
        }

        @media (max-width: 767px) {
            main {
                padding: 85px 0 60px;
            }

            .products-container {
                padding: 0 10px;
                margin: 5px auto;
            }

            .products-container h1 {
                font-size: 20px;
                margin-bottom: 15px;
                padding: 10px;
            }

            .breadcrumb {
                font-size: 12px;
                margin-bottom: 15px;
            }

            .filter-sort-box {
                padding: 12px;
                gap: 10px;
                flex-wrap: wrap;
            }

            .filter-sort-box label {
                font-size: 12px;
                margin-right: 6px;
            }

            .filter-sort-box select {
                padding: 6px 8px;
                font-size: 12px;
                max-width: 110px;
            }

            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            .product-card {
                border-radius: 8px;
                padding: 10px;
            }

            .product-image {
                height: 140px;
                margin-bottom: 10px;
            }

            .product-title {
                font-size: 14px;
                height: 38px;
                margin-bottom: 10px;
            }

            .price-dropdown, .fixed-price {
                font-size: 12px;
                padding: 8px;
            }

            .action-btn {
                padding: 10px;
                font-size: 12px;
            }

            .no-products {
                padding: 40px 15px;
                font-size: 16px;
            }

            .no-products i {
                font-size: 36px;
            }
        }

        @media (max-width: 480px) {
            .products-container h1 {
                font-size: 18px;
                padding: 8px;
            }

            .filter-sort-box {
                gap: 8px;
                padding: 10px;
            }

            .filter-sort-box select {
                max-width: 95px;
                font-size: 11px;
            }

            .products-grid {
                gap: 8px;
            }

            .product-card {
                padding: 8px;
            }

            .product-image {
                height: 120px;
            }

            .product-title {
                font-size: 13px;
                height: 36px;
            }

            .price-dropdown, .fixed-price {
                font-size: 11px;
                padding: 6px;
            }

            .action-btn {
                font-size: 11px;
                padding: 8px;
            }
        }

        @keyframes fadeIn {
            from { 
                opacity: 0; 
                transform: translateY(20px) translateZ(0); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0) translateZ(0); 
            }
        }

        .product-card {
            animation: fadeIn 0.5s ease-out;
        }

        ::-webkit-scrollbar {
            width: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--dark-dashboard-1);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--card-border);
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent-cyan);
        }