SELECT 
  v.product_id, 
  v.feature_id, 
  v.value, 
  v.value_int, 
  v.variant_id, 
  f.feature_type, 
  fd.description, 
  fd.prefix, 
  fd.suffix, 
  vd.variant, 
  f.parent_id, 
  f.position, 
  gf.position as gposition 
FROM 
  cscart_product_features as f 
  LEFT JOIN cscart_product_features_values as v ON v.feature_id = f.feature_id 
  LEFT JOIN cscart_product_features_descriptions as fd ON fd.feature_id = v.feature_id 
  AND fd.lang_code = 'ar' 
  LEFT JOIN cscart_product_feature_variants fv ON fv.variant_id = v.variant_id 
  LEFT JOIN cscart_product_feature_variant_descriptions as vd ON vd.variant_id = fv.variant_id 
  AND vd.lang_code = 'ar' 
  LEFT JOIN cscart_product_features as gf ON gf.feature_id = f.parent_id 
  AND gf.feature_type = 'G' 
WHERE 
  f.status IN ('A') 
  AND v.product_id in (
    2372, 2363, 2845, 2367, 2854, 2809, 2374, 
    3142, 2829
  ) 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(166, f.categories_path) 
    OR FIND_IN_SET(329, f.categories_path) 
    OR FIND_IN_SET(347, f.categories_path)
  ) 
  AND IF(
    f.parent_id, 
    (
      SELECT 
        status 
      FROM 
        cscart_product_features as df 
      WHERE 
        df.feature_id = f.parent_id
    ), 
    'A'
  ) IN ('A') 
  AND (
    v.variant_id != 0 
    OR (
      f.feature_type != 'C' 
      AND v.value != ''
    ) 
    OR (f.feature_type = 'C') 
    OR v.value_int != ''
  ) 
  AND v.lang_code = 'ar' 
ORDER BY 
  fd.description, 
  fv.position

Query time 0.00390

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "98.80"
    },
    "ordering_operation": {
      "using_temporary_table": true,
      "using_filesort": true,
      "nested_loop": [
        {
          "table": {
            "table_name": "v",
            "access_type": "range",
            "possible_keys": [
              "PRIMARY",
              "fl",
              "variant_id",
              "lang_code",
              "product_id",
              "fpl",
              "idx_product_feature_variant_id"
            ],
            "key": "idx_product_feature_variant_id",
            "used_key_parts": [
              "product_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 159,
            "rows_produced_per_join": 51,
            "filtered": "32.51",
            "index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (2372,2363,2845,2367,2854,2809,2374,3142,2829)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'ar')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
            "cost_info": {
              "read_cost": "68.64",
              "eval_cost": "5.17",
              "prefix_cost": "73.81",
              "data_read_per_join": "39K"
            },
            "used_columns": [
              "feature_id",
              "product_id",
              "variant_id",
              "value",
              "value_int",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "f",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY",
              "status"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id"
            ],
            "key_length": "3",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.v.feature_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 4,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "12.92",
              "eval_cost": "0.49",
              "prefix_cost": "91.90",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "feature_id",
              "feature_type",
              "categories_path",
              "parent_id",
              "display_on_catalog",
              "status",
              "position"
            ],
            "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`f`.`status` = 'A') and (`softwarepirmam_hewadelivard_cscart_4`.`f`.`display_on_catalog` = 'Y') and ((`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path` = '') or (0 <> find_in_set(166,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(329,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(347,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`))) and (if(`softwarepirmam_hewadelivard_cscart_4`.`f`.`parent_id`,(/* select#2 */ select `softwarepirmam_hewadelivard_cscart_4`.`df`.`status` from `softwarepirmam_hewadelivard_cscart_4`.`cscart_product_features` `df` where (`softwarepirmam_hewadelivard_cscart_4`.`df`.`feature_id` = `softwarepirmam_hewadelivard_cscart_4`.`f`.`parent_id`)),'A') = 'A') and ((`softwarepirmam_hewadelivard_cscart_4`.`v`.`variant_id` <> 0) or ((`softwarepirmam_hewadelivard_cscart_4`.`f`.`feature_type` <> 'C') and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`value` <> '')) or (`softwarepirmam_hewadelivard_cscart_4`.`f`.`feature_type` = 'C') or (`softwarepirmam_hewadelivard_cscart_4`.`v`.`value_int` <> 0)))",
            "attached_subqueries": [
              {
                "dependent": true,
                "cacheable": false,
                "query_block": {
                  "select_id": 2,
                  "cost_info": {
                    "query_cost": "0.35"
                  },
                  "table": {
                    "table_name": "df",
                    "access_type": "eq_ref",
                    "possible_keys": [
                      "PRIMARY"
                    ],
                    "key": "PRIMARY",
                    "used_key_parts": [
                      "feature_id"
                    ],
                    "key_length": "3",
                    "ref": [
                      "softwarepirmam_hewadelivard_cscart_4.f.parent_id"
                    ],
                    "rows_examined_per_scan": 1,
                    "rows_produced_per_join": 1,
                    "filtered": "100.00",
                    "cost_info": {
                      "read_cost": "0.25",
                      "eval_cost": "0.10",
                      "prefix_cost": "0.35",
                      "data_read_per_join": "440"
                    },
                    "used_columns": [
                      "feature_id",
                      "status"
                    ]
                  }
                }
              }
            ]
          }
        },
        {
          "table": {
            "table_name": "fd",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.v.feature_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 4,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.23",
              "eval_cost": "0.49",
              "prefix_cost": "93.63",
              "data_read_per_join": "11K"
            },
            "used_columns": [
              "feature_id",
              "description",
              "prefix",
              "suffix",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "fv",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id"
            ],
            "key_length": "3",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.v.variant_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 4,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.23",
              "eval_cost": "0.49",
              "prefix_cost": "95.35",
              "data_read_per_join": "5K"
            },
            "used_columns": [
              "variant_id",
              "position"
            ]
          }
        },
        {
          "table": {
            "table_name": "vd",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "variant_id",
              "lang_code"
            ],
            "key_length": "9",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.fv.variant_id",
              "const"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 4,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.23",
              "eval_cost": "0.49",
              "prefix_cost": "97.08",
              "data_read_per_join": "14K"
            },
            "used_columns": [
              "variant_id",
              "variant",
              "lang_code"
            ]
          }
        },
        {
          "table": {
            "table_name": "gf",
            "access_type": "eq_ref",
            "possible_keys": [
              "PRIMARY"
            ],
            "key": "PRIMARY",
            "used_key_parts": [
              "feature_id"
            ],
            "key_length": "3",
            "ref": [
              "softwarepirmam_hewadelivard_cscart_4.f.parent_id"
            ],
            "rows_examined_per_scan": 1,
            "rows_produced_per_join": 4,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.23",
              "eval_cost": "0.49",
              "prefix_cost": "98.80",
              "data_read_per_join": "2K"
            },
            "used_columns": [
              "feature_id",
              "feature_type",
              "position"
            ],
            "attached_condition": "<if>(is_not_null_compl(gf), (`softwarepirmam_hewadelivard_cscart_4`.`gf`.`feature_type` = 'G'), true)"
          }
        }
      ]
    }
  }
}

Result

product_id feature_id value value_int variant_id feature_type description prefix suffix variant parent_id position gposition
3142 654 3564 S Charging Type Charges via USB-C, fully recharges in 5 hours 0 120
2845 654 3268 S Charging Type USB-C fast charging (5 V⎓3 A) 0 120
2854 654 3268 S Charging Type USB-C fast charging (5 V⎓3 A) 0 120
2829 654 3245 S Charging Type USB-C charging, ~3 hours. 0 120
2374 654 2773 S Charging Type USB‑C 0 120
2374 659 2781 S Connectivity 3.5 mm AUX‑in, Bluetooth 5.0 with a range of 15 meters 0 152
2363 659 0.00 2762 S Connectivity NFC pairing, 3.5 mm AUX input, Bluetooth 4.0 with a range of 10 meters 0 152
2829 659 3246 S Connectivity Bluetooth, Wi-Fi, AUX. 0 152
3142 659 3565 S Connectivity Bluetooth 5.3, support for LDAC, SBC, AAC codes, features TWS pairing for stereo sound 0 152
2367 659 0.00 2764 S Connectivity Bluetooth 4.2, with a range of 10 meters 0 152
2845 659 3269 S Connectivity Bluetooth 5.3, Auracast 0 152
2854 659 1702 S Connectivity Bluetooth 5.3 0 152
2372 659 0.00 2779 S Connectivity TWS & Multi-Speaker Pairing, Bluetooth 5.4 with a range of 25 meters 0 152
2809 659 3195 S Connectivity Bluetooth 5.3 (up to ~20 m/66 ft range) MicroSD card slot, 3.5 mm AUX input, and FM radio support 0 152
2829 683 3176 S Input 100-240V AC, 50/60Hz. 0 310
2845 683 3270 S Input USB-C (5 V⎓3 A) 0 310
2854 683 3270 S Input USB-C (5 V⎓3 A) 0 310
2367 683 0.00 2765 S Input Micro‑USB (5 V ⎓ 2 A) 0 310
3142 683 3553 S Input USB-C (charging) 0 310
2809 684 3196 S Output 8 W dynamic driver with passive subwoofer 0 320
2829 684 1100.00 4511 S Output 1100W RMS 0 320
2845 684 3271 S Output 30 W RMS (2 × 15 W) 0 320
2374 684 2782 S Output 16 W (2 × 8 W) 0 320
2372 684 5.00 2757 S Output 5 W 0 320
2854 684 20.00 3277 S Output 20 W RMS (2 × 10 W) 0 320
2367 684 3.00 2766 S Output 3 W 0 320
2363 684 2761 S Output 3 W × 2 (Dual 36 mm drivers) 0 320
3142 684 3566 S Output Audio output up to 20 W 0 320
2829 645 4510 S Ports USB, AUX in, Mic input, Guitar input, DC power input. 0 110
3142 645 3563 S Ports 1 x USB-C (charging) 0 110
2829 651 3243 S Processor Qualcomm Snapdragon 665 0 60
2854 653 3276 S باتري 4,800 mAh, up to 16 hours of playtime 0 100
3142 653 3562 S باتري 2,600mAh, up to 12 hours of playback on a full charge with moderate volume 0 100
2845 653 3267 S باتري 10,200 mAh, up to 28 hours of playtime 0 100
2829 653 3244 S باتري 9,444mAh, 18 hours playback time. 0 100
2367 653 480.00 2763 S باتري 480 mAh, up to 6 hours of playtime 0 100
2363 653 2759 S باتري 1500 mAh, up to 8 hours of playtime 0 100
2809 653 3194 S باتري About 15 hours of continuous playback on one charge 0 100
2374 653 2780 S باتري 2,600 mAh. up to 13 hours of playtime 0 100
2374 656 1600 S لون Blue 0 160
2363 656 2758 S لون Gold 0 160
3142 656 1560 S لون Black 0 160
2367 656 1559 S لون White 0 160
2372 656 1560 S لون Black 0 160
2809 656 1560 S لون Black 0 160
2845 656 1600 S لون Blue 0 160
2829 656 1560 S لون Black 0 160
2854 656 1558 S لون Pink 0 160
2854 657 3006 E ماركة JBL 0 0
2829 657 3006 E ماركة JBL 0 0
2374 657 1666 E ماركة Xiaomi 0 0
2372 657 1666 E ماركة Xiaomi 0 0
2367 657 1666 E ماركة Xiaomi 0 0
2809 657 2082 E ماركة Anker 0 0
2845 657 3006 E ماركة JBL 0 0
3142 657 2082 E ماركة Anker 0 0
2363 657 1666 E ماركة Xiaomi 0 0