.container1 {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        .search-filter-bar {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid #e3f2fd;
            margin-bottom: 30px;
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
            align-items: center;
        }

        .search-box {
            flex: 1;
            min-width: 250px;
        }

        .search-box input {
            width: 100%;
            padding: 12px 45px 12px 15px;
            border: 2px solid #6940b1;
            border-radius: 8px;
            font-size: 16px;
            background: #fafafa;
            transition: all 0.3s ease;
        }

        .search-box input:focus {
            outline: none;
            border-color: #03a9f4;
            background: white;
            box-shadow: 0 0 0 4px rgba(3, 169, 244, 0.1);
        }

        .search-box {
            position: relative;
        }

        .search-box::after {
            content: '🔍';
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 16px;
            color: #03a9f4;
        }

        .filter-options {
            display: flex;
            gap: 15px;
            align-items: center;
            flex-wrap: wrap;
        }

        .filter-select {
            padding: 10px 15px;
            border: 2px solid #e1f5fe;
            border-radius: 8px;
            background: #fafafa;
            color: #5E00FF;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .filter-select:focus {
            outline: none;
            border-color: #03a9f4;
            background: white;
        }

        .view-toggle {
            display: flex;
            gap: 5px;
            background: #f1f8ff;
            padding: 5px;
            border-radius: 8px;
        }

        .view-btn {
            padding: 8px 12px;
            border: none;
            background: transparent;
            color: #546e7a;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
        }

        .view-btn.active {
            background: #03a9f4;
            color: white;
        }

        .categories-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding: 0 10px;
        }

        .total-categories {
            color: #5E00FF;
            font-weight: 600;
            font-size: 16px;
        }

        .sort-options {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .sort-label {
            color: #546e7a;
            font-weight: 600;
            font-size: 14px;
        }

        .sort-select {
            padding: 8px 12px;
            border: 2px solid #e1f5fe;
            border-radius: 6px;
            background: white;
            color: #01579b;
            font-weight: 500;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 25px;
            margin-bottom: 40px;
        }

        .categories-grid.list-view {
            grid-template-columns: 1fr;
            gap: 20px;
        }

        .category-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            border: 1px solid #e3f2fd;
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
        }

        .category-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 30px #5d00ff30;
            border-color: #5E00FF;
        }

        .category-image {
            width: 100%;
            height: 200px;
            background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 48px;
            position: relative;
            overflow: hidden;
        }

        .category-image::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, transparent 30%, rgba(3, 169, 244, 0.1) 50%, transparent 70%);
            transform: translateX(-100%);
            transition: transform 0.6s ease;
        }

        .category-card:hover .category-image::before {
            transform: translateX(100%);
        }

        .category-content {
            padding: 25px;
        }

        .category-title {
            color: #01579b;
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .category-description {
            color: #546e7a;
            font-size: 14px;
            margin-bottom: 15px;
            line-height: 1.5;
        }

        .category-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .product-count {
            background: #f1f8ff;
            color: #0277bd;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 12px;
            font-weight: 600;
        }

        .category-tag {
            background: #03a9f4;
            color: white;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .category-actions {
            display: flex;
            gap: 10px;
        }

        .view-category-btn {
            flex: 1;
            background: linear-gradient(135deg, #03a9f4 0%, #0288d1 100%);
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 14px;
        }

        .view-category-btn:hover {
            background: linear-gradient(135deg, #0288d1 0%, #0277bd 100%);
            transform: translateY(-1px);
        }

        .favorite-btn {
            background: #f1f8ff;
            color: #03a9f4;
            border: 2px solid #e1f5fe;
            padding: 10px;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
        }

        .favorite-btn:hover,
        .favorite-btn.active {
            background: #03a9f4;
            color: white;
            border-color: #03a9f4;
        }

        /* List View Styles */
        .categories-grid.list-view .category-card {
            display: flex;
            align-items: center;
            padding: 20px;
        }

        .categories-grid.list-view .category-image {
            width: 120px;
            height: 120px;
            margin-right: 25px;
            border-radius: 10px;
            flex-shrink: 0;
            font-size: 32px;
        }

        .categories-grid.list-view .category-content {
            flex: 1;
            padding: 0;
        }

        .categories-grid.list-view .category-stats {
            margin-bottom: 10px;
        }

        .categories-grid.list-view .category-actions {
            margin-top: 15px;
        }

        /* Featured Categories */
        .featured-section {
            margin-bottom: 40px;
        }

        .section-title {
            color: #01579b;
            font-size: 24px;
            font-weight: 700;
            margin-bottom: 20px;
            text-align: center;
        }

        .featured-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .featured-card {
            background: linear-gradient(135deg, #03a9f4 0%, #0288d1 100%);
            color: white;
            padding: 30px;
            border-radius: 15px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .featured-card::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .featured-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(3, 169, 244, 0.4);
        }

        .featured-card:hover::before {
            opacity: 1;
        }

        .featured-icon {
            font-size: 36px;
            margin-bottom: 15px;
        }

        .featured-title {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .featured-count {
            font-size: 14px;
            opacity: 0.9;
        }
        .no-link-style {
        text-decoration: none; /* Removes underline */
        color: inherit; /* Inherits the color of the parent element */
    }

    /* Responsive grid: small to big screens */
    @media (max-width: 480px) {
        .categories-grid {
        grid-template-columns: 1fr;
        }
    }
    @media (min-width: 481px) and (max-width: 768px) {
        .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        }
    }
    @media (min-width: 769px) and (max-width: 1024px) {
        .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        }
    }
    @media (min-width: 1025px) and (max-width: 1200px) {
        .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        }
    }
    @media (min-width: 1201px) {
        .categories-grid {
        grid-template-columns: repeat(5, 1fr);
        }
    }
        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }

            .header {
                padding: 25px 20px;
            }

            .header h1 {
                font-size: 28px;
            }

            .search-filter-bar {
                flex-direction: column;
                gap: 15px;
            }

            .filter-options {
                width: 100%;
                justify-content: space-between;
            }

            /* Modified for 2 items per row on mobile */
            .categories-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .categories-grid.list-view .category-card {
                flex-direction: column;
                text-align: center;
            }

            .categories-grid.list-view .category-image {
                margin-right: 0;
                margin-bottom: 15px;
                width: 100px;
                height: 100px;
            }

            /* Featured grid also 2 items per row on mobile */
            .featured-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
            }

            .categories-stats {
                flex-direction: column;
                gap: 15px;
                align-items: flex-start;
            }

            /* Adjust card content for smaller mobile cards */
            .category-content {
                padding: 15px;
            }

            .category-image {
                height: 140px;
            }

            .category-title {
                font-size: 16px;
            }

            .category-description {
                font-size: 13px;
            }

            .featured-card {
                padding: 20px;
            }

            .featured-icon {
                font-size: 28px;
            }

            .featured-title {
                font-size: 16px;
            }
        }

        /* For very small screens (phones in portrait) */
        @media (max-width: 480px) {
            .container1 {
                padding: 10px;
            }

            .categories-grid {
                gap: 10px;
            }

            .category-content {
                padding: 12px;
            }

            .category-image {
                height: 120px;
                font-size: 36px;
            }

            .featured-card {
                padding: 15px;
            }

            .featured-grid {
                gap: 10px;
            }
        }

        /* Animation */
        .category-card, .featured-card {
            animation: fadeInUp 0.6s ease-out;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Loading State */
        .loading {
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 50px;
            color: #03a9f4;
            font-size: 18px;
        }

        .loading::before {
            content: '⏳';
            animation: spin 1s linear infinite;
            margin-right: 10px;
        }

        @keyframes spin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }