 * {
            box-sizing: border-box;
        }

        .search-container {
            position: relative;
            max-width: 600px;
            margin: 0 auto;
            font-family: 'Arial', sans-serif;
        }

        .search-bar {
            width: 100%;
            padding: 15px 50px 15px 20px;
            font-size: 16px;
            border: 2px solid #e1e8ed;
            border-radius: 25px;
            outline: none;
            transition: all 0.3s ease;
            background: #fff;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .search-bar:focus {
            border-color: #667eea;
            box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
        }

        .search-icon {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #667eea;
            font-size: 18px;
            pointer-events: none;
        }

        .search-popup {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            max-height: 400px;
            overflow-y: auto;
            z-index: 1000;
            margin-top: 10px;
            display: none;
            border: 1px solid #e1e8ed;
        }

        .search-popup.show {
            display: block;
            animation: fadeInUp 0.3s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .search-result {
            display: flex;
            padding: 15px;
            border-bottom: 1px solid #f1f3f4;
            cursor: pointer;
            transition: background-color 0.2s ease;
        }

        .search-result:hover {
            background-color: #f8f9fa;
        }

        .search-result:last-child {
            border-bottom: none;
        }

        .result-image {
            width: 80px;
            height: 50px;
            object-fit: cover;
            border-radius: 8px;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .result-content {
            flex: 1;
            min-width: 0;
        }

        .result-title {
            font-size: 16px;
            font-weight: 600;
            color: #1a1a1a;
            margin: 0 0 5px 0;
            line-height: 1.2;
        }

        .result-description {
            font-size: 14px;
            color: #666;
            margin: 0 0 8px 0;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .result-category {
            display: inline-block;
            background: #667eea;
            color: white;
            padding: 3px 8px;
            border-radius: 12px;
            font-size: 12px;
            text-transform: capitalize;
        }

        .no-results {
            text-align: center;
            padding: 30px 20px;
            color: #666;
            font-size: 16px;
        }

        .loading {
            text-align: center;
            padding: 20px;
            color: #666;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .search-container {
                margin: 0 15px;
            }

            .search-bar {
                padding: 12px 45px 12px 15px;
                font-size: 16px; /* Prevents zoom on iOS */
            }

            .search-result {
                padding: 12px;
            }

            .result-image {
                width: 60px;
                height: 40px;
                margin-right: 12px;
            }

            .result-title {
                font-size: 15px;
            }

            .result-description {
                font-size: 13px;
            }

            .search-popup {
                max-height: 300px;
            }
        }

        @media (max-width: 480px) {
            .search-bar {
                padding: 10px 40px 10px 12px;
            }

            .search-icon {
                right: 12px;
                font-size: 16px;
            }

            .result-image {
                width: 50px;
                height: 35px;
                margin-right: 10px;
            }

            .result-title {
                font-size: 14px;
            }

            .result-description {
                font-size: 12px;
            }
        }