  /* ============================================
        ALL PREVIOUS STYLES + IMAGE SEARCH STYLES
        ============================================ */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            /* background: #f5f7fa; */
            padding: 20px;
            min-height: 100vh;
        }

        .container {
            max-width: 800px;
            margin: 0 auto;
        }

        /* h1 {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 30px;
            font-weight: 700;
        } */

        /* ============================================
        SEARCH BAR STYLES (Original)
        ============================================ */
        .search-wrapper {
            position: relative;
            width: 100%;
            max-width: 600px;
            margin: 0 auto 20px;
        }

        .search-bar {
            display: flex;
            align-items: center;
            background: #ffffff;
            border: 2px solid #e0e0e0;
            border-radius: 50px;
            padding: 0 15px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .search-bar:focus-within {
            border-color: #4CAF50;
            box-shadow: 0 4px 20px rgba(76, 175, 80, 0.15);
        }

        .search-bar input {
            flex: 1;
            padding: 14px 10px;
            border: none;
            outline: none;
            background: transparent;
            font-size: 16px;
            color: #333;
        }

        .search-bar input::placeholder {
            color: #999;
        }

        .search-bar input.listening {
            border-color: #ff4444 !important;
            animation: pulse-border 1s infinite;
        }

        @keyframes pulse-border {
            0%, 100% { border-color: #ff4444; }
            50% { border-color: #ff8888; }
        }

        /* Image Search Button */
        .search-image-btn {
            background: none;
            border: none;
            padding: 8px 10px;
            cursor: pointer;
            font-size: 20px;
            color: #666;
            transition: all 0.2s ease;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
        }

        .search-image-btn:hover {
            background: #f0f0f0;
            color: #333;
            transform: scale(1.05);
        }

        .search-image-btn.active {
            background: #4CAF50;
            color: white;
        }

        .search-image-btn .badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background: #4CAF50;
            color: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            font-size: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-voice {
            background: none;
            border: none;
            padding: 8px 10px;
            cursor: pointer;
            font-size: 20px;
            color: #666;
            transition: all 0.2s ease;
            border-radius: 50%;
            width: 44px;
            height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .search-voice:hover {
            background: #f0f0f0;
            color: #333;
            transform: scale(1.05);
        }

        .search-voice.active {
            background: #ff4444;
            color: white;
            animation: pulse-voice 1s infinite;
        }

        @keyframes pulse-voice {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }

        .search-voice-status {
            display: none;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: #ff4444;
            color: white;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 500;
            animation: fadeIn 0.3s ease;
        }

        .search-voice-status.active {
            display: flex;
        }

        .pulse-dot {
            display: inline-block;
            width: 10px;
            height: 10px;
            background: white;
            border-radius: 50%;
            animation: pulse-dot 1s infinite;
        }

        @keyframes pulse-dot {
            0%, 100% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.5); opacity: 0.5; }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: scale(0.8); }
            to { opacity: 1; transform: scale(1); }
        }

        .search-clear {
            background: none;
            border: none;
            padding: 8px 10px;
            cursor: pointer;
            font-size: 18px;
            color: #999;
            transition: all 0.2s ease;
            display: none;
        }

        .search-clear.visible {
            display: block;
        }

        .search-clear:hover {
            color: #333;
            transform: scale(1.1);
        }

        /* ============================================
        IMAGE UPLOAD MODAL
        ============================================ */
        .image-upload-modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            z-index: 2000;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease;
        }

        .image-upload-modal.active {
            display: flex;
        }

        .image-upload-modal .modal-content {
            background: white;
            border-radius: 20px;
            padding: 30px;
            max-width: 500px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
        }

        .image-upload-modal .modal-close {
            position: absolute;
            top: 10px;
            right: 15px;
            font-size: 28px;
            cursor: pointer;
            color: #999;
            transition: all 0.2s ease;
            background: none;
            border: none;
        }

        .image-upload-modal .modal-close:hover {
            color: #333;
            transform: rotate(90deg);
        }

        .image-upload-modal h2 {
            margin-bottom: 20px;
            color: #333;
        }

        .image-drop-zone {
            border: 2px dashed #ddd;
            border-radius: 12px;
            padding: 40px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            background: #fafafa;
        }

        .image-drop-zone:hover {
            border-color: #4CAF50;
            background: #f0f8f0;
        }

        .image-drop-zone.dragover {
            border-color: #4CAF50;
            background: #e8f5e9;
        }

        .image-drop-zone .upload-icon {
            font-size: 48px;
            display: block;
            margin-bottom: 10px;
        }

        .image-drop-zone .upload-text {
            color: #666;
            font-size: 16px;
        }

        .image-drop-zone .upload-subtext {
            color: #999;
            font-size: 13px;
            margin-top: 5px;
        }

        .image-preview-container {
            display: none;
            margin-top: 20px;
            text-align: center;
        }

        .image-preview-container.active {
            display: block;
        }

        .image-preview-container img {
            max-width: 100%;
            max-height: 300px;
            border-radius: 12px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .image-preview-container .image-actions {
            margin-top: 15px;
            display: flex;
            gap: 10px;
            justify-content: center;
        }

        .btn-primary {
            background: #4CAF50;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .btn-primary:hover {
            background: #45a049;
            transform: scale(1.05);
        }

        .btn-danger {
            background: #ff4444;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 25px;
            cursor: pointer;
            font-size: 16px;
            transition: all 0.3s ease;
        }

        .btn-danger:hover {
            background: #cc0000;
            transform: scale(1.05);
        }

        /* ============================================
        SEARCH RESULTS STYLES
        ============================================ */
        .search-results {
            position: absolute;
            top: calc(100% + 10px);
            left: 0;
            right: 0;
            background: #ffffff;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
            max-height: 500px;
            overflow-y: auto;
            display: none;
            z-index: 1000;
            border: 1px solid #eee;
        }

        .search-results::-webkit-scrollbar {
            width: 6px;
        }

        .search-results::-webkit-scrollbar-thumb {
            background: #ccc;
            border-radius: 3px;
        }

        .search-results::-webkit-scrollbar-track {
            background: #f5f5f5;
        }

        .search-result-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 15px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-bottom: 1px solid #f5f5f5;
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item:hover,
        .search-result-item.active {
            background: #f5f7fa;
        }

        .search-result-item .result-image {
            width: 50px;
            height: 50px;
            flex-shrink: 0;
            border-radius: 8px;
            overflow: hidden;
            background: #f0f0f0;
        }

        .search-result-item .result-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .search-result-item .result-info {
            flex: 1;
            min-width: 0;
        }

        .search-result-item .result-name {
            font-weight: 600;
            color: #333;
            margin-bottom: 2px;
        }

        .search-result-item .result-name .search-highlight {
            background: #ffeb3b;
            padding: 0 2px;
            border-radius: 2px;
        }

        .search-result-item .result-category {
            font-size: 12px;
            color: #999;
        }

        .search-result-item .result-price {
            font-weight: 700;
            color: #4CAF50;
            margin-top: 2px;
        }

        .search-result-item .result-score {
            font-size: 12px;
            color: #999;
            flex-shrink: 0;
            background: #f0f0f0;
            padding: 2px 8px;
            border-radius: 12px;
        }

        .search-result-item .result-match-badge {
            font-size: 11px;
            color: #4CAF50;
            background: #e8f5e9;
            padding: 2px 10px;
            border-radius: 12px;
            flex-shrink: 0;
        }

        /* Suggestions */
        .search-suggestions {
            padding: 10px 15px;
        }

        .suggestion-header {
            font-size: 12px;
            color: #999;
            margin-bottom: 8px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .suggestion-item {
            padding: 8px 0;
            cursor: pointer;
            color: #333;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .suggestion-item:hover {
            color: #4CAF50;
            padding-left: 5px;
        }

        .suggestion-clear {
            padding: 8px 0;
            cursor: pointer;
            color: #ff4444;
            font-size: 13px;
            border-top: 1px solid #eee;
            margin-top: 5px;
            padding-top: 10px;
            transition: all 0.2s ease;
        }

        .suggestion-clear:hover {
            color: #cc0000;
            padding-left: 5px;
        }

        .suggestion-hint {
            padding: 20px;
            text-align: center;
            color: #999;
            font-size: 14px;
        }

        .search-empty {
            padding: 30px;
            text-align: center;
            color: #999;
        }

        /* ============================================
        PRODUCT GRID
        ============================================ */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            padding: 20px 0;
        }

        .product-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        }

        .product-card img {
            width: 100%;
            height: 150px;
            object-fit: cover;
        }

        .product-card .product-info {
            padding: 15px;
        }

        .product-card .product-name {
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .product-card .product-category {
            font-size: 12px;
            color: #999;
        }

        .product-card .product-price {
            font-weight: 700;
            color: #4CAF50;
            margin-top: 5px;
        }

        /* ============================================
        RESPONSIVE
        ============================================ */
        @media (max-width: 768px) {
            .search-bar input {
                font-size: 14px;
                padding: 12px 8px;
            }

            .search-voice,
            .search-image-btn {
                font-size: 18px;
                width: 38px;
                height: 38px;
            }

            .search-results {
                max-height: 400px;
            }

            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 15px;
            }

            .image-upload-modal .modal-content {
                padding: 20px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }

            .search-bar {
                padding: 0 10px;
                border-radius: 30px;
            }

            .search-bar input {
                font-size: 13px;
                padding: 10px 6px;
            }

            .search-voice,
            .search-image-btn {
                font-size: 16px;
                width: 34px;
                height: 34px;
                padding: 4px;
            }

            .search-results {
                max-height: 300px;
            }

            .search-result-item {
                padding: 8px 12px;
                gap: 10px;
            }

            .search-result-item .result-image {
                width: 40px;
                height: 40px;
            }

            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
                gap: 10px;
            }
        }

