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 = 'en' 
  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 = 'en' 
  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 (
    7807, 7823, 7838, 7827, 6821, 7829, 7811, 
    7866, 7841, 7861, 7856, 7863, 7840, 
    7812, 7855, 7869, 7870, 7813, 7825, 
    8373
  ) 
  AND f.display_on_catalog = 'Y' 
  AND (
    f.categories_path = '' 
    OR FIND_IN_SET(166, f.categories_path) 
    OR FIND_IN_SET(423, f.categories_path) 
    OR FIND_IN_SET(424, f.categories_path) 
    OR FIND_IN_SET(450, 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 = 'en' 
ORDER BY 
  fd.description, 
  fv.position

Query time 0.00337

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "143.44"
    },
    "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": "product_id",
            "used_key_parts": [
              "product_id"
            ],
            "key_length": "3",
            "rows_examined_per_scan": 228,
            "rows_produced_per_join": 74,
            "filtered": "32.52",
            "index_condition": "(`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (7807,7823,7838,7827,6821,7829,7811,7866,7841,7861,7856,7863,7840,7812,7855,7869,7870,7813,7825,8373))",
            "cost_info": {
              "read_cost": "100.20",
              "eval_cost": "7.41",
              "prefix_cost": "107.61",
              "data_read_per_join": "57K"
            },
            "used_columns": [
              "feature_id",
              "product_id",
              "variant_id",
              "value",
              "value_int",
              "lang_code"
            ],
            "attached_condition": "((`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en') and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))"
          }
        },
        {
          "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": 7,
            "filtered": "9.53",
            "cost_info": {
              "read_cost": "18.53",
              "eval_cost": "0.71",
              "prefix_cost": "133.56",
              "data_read_per_join": "3K"
            },
            "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(423,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(424,`softwarepirmam_hewadelivard_cscart_4`.`f`.`categories_path`)) or (0 <> find_in_set(450,`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": 7,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.77",
              "eval_cost": "0.71",
              "prefix_cost": "136.03",
              "data_read_per_join": "16K"
            },
            "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": 7,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.77",
              "eval_cost": "0.71",
              "prefix_cost": "138.50",
              "data_read_per_join": "8K"
            },
            "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": 7,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.77",
              "eval_cost": "0.71",
              "prefix_cost": "140.97",
              "data_read_per_join": "21K"
            },
            "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": 7,
            "filtered": "100.00",
            "cost_info": {
              "read_cost": "1.77",
              "eval_cost": "0.71",
              "prefix_cost": "143.45",
              "data_read_per_join": "3K"
            },
            "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
6821 657 8331 E Brand Acefast 0 0
7840 657 8624 E Brand 1Hora 0 0
7841 657 8624 E Brand 1Hora 0 0
7823 657 8624 E Brand 1Hora 0 0
7825 657 8624 E Brand 1Hora 0 0
7855 657 8624 E Brand 1Hora 0 0
7856 657 8624 E Brand 1Hora 0 0
7813 657 8624 E Brand 1Hora 0 0
7838 657 8624 E Brand 1Hora 0 0
7861 657 8624 E Brand 1Hora 0 0
7863 657 8624 E Brand 1Hora 0 0
7812 657 8624 E Brand 1Hora 0 0
7866 657 8624 E Brand 1Hora 0 0
7829 657 8624 E Brand 1Hora 0 0
7869 657 8624 E Brand 1Hora 0 0
7827 657 8624 E Brand 1Hora 0 0
7811 657 8624 E Brand 1Hora 0 0
7870 657 8624 E Brand 1Hora 0 0
7807 657 8624 E Brand 1Hora 0 0
8373 657 2078 E Brand Hama 0 0
7838 708 3782 S Cable Length 1m 0 0
7840 708 3783 S Cable Length 2m 0 0
7829 708 3783 S Cable Length 2m 0 0
7841 708 3783 S Cable Length 2m 0 0
7855 708 3783 S Cable Length 2m 0 0
7856 708 3782 S Cable Length 1m 0 0
7866 708 3782 S Cable Length 1m 0 0
7869 708 3782 S Cable Length 1m 0 0
7870 708 3782 S Cable Length 1m 0 0
8373 708 3960 S Cable Length 5m 0 0
7823 708 3782 S Cable Length 1m 0 0
7807 708 3783 S Cable Length 2m 0 0
7827 708 3782 S Cable Length 1m 0 0
7811 708 6213 S Cable Length 1.5m 0 0
7813 708 6213 S Cable Length 1.5m 0 0
7825 708 3783 S Cable Length 2m 0 0
7812 708 3782 S Cable Length 1m 0 0
7866 709 0.00 8638 S Cable Type Type-C to Type-C 0 0
7813 709 4200 S Cable Type USB-C to USB-C. 0 0
7856 709 4609 S Cable Type USB-A to USB-C 0 0
7861 709 8628 S Cable Type USB to Lightning 0 0
7863 709 0.00 8634 S Cable Type A3 USB to Type-C 0 0
7829 709 8626 S Cable Type USB to V8 / Type-C 0 0
7812 709 8627 S Cable Type USB to Type-C 0 0
7869 709 8642 S Cable Type USB to Micro + Lightning + Type-C 0 0
7811 709 8626 S Cable Type USB to V8 / Type-C 0 0
7870 709 8638 S Cable Type Type-C to Type-C 0 0
8373 709 8809 S Cable Type USB-A to USB-B 0 0
7823 709 0.00 8628 S Cable Type USB to Lightning 0 0
7827 709 8626 S Cable Type USB to V8 / Type-C 0 0
7841 709 8626 S Cable Type USB to V8 / Type-C 0 0
7838 709 8626 S Cable Type USB to V8 / Type-C 0 0
7825 709 8629 S Cable Type A5 USB to Type-C 0 0
7840 709 0.00 8631 S Cable Type USB to Micro USB (V8) 0 0
7855 709 4200 S Cable Type USB-C to USB-C. 0 0
6821 656 1560 S Color Black 0 160
8373 656 1560 S Color Black 0 160
7827 656 1559 S Color white 0 160
7807 656 1559 S Color white 0 160
7870 656 1560 S Color Black 0 160
7829 656 1560 S Color Black 0 160
7869 656 1560 S Color Black 0 160
7825 656 1560 S Color Black 0 160
7838 656 1560 S Color Black 0 160
7811 656 1559 S Color white 0 160
7866 656 1559 S Color white 0 160
7863 656 1560 S Color Black 0 160
7812 656 1560 S Color Black 0 160
7840 656 1559 S Color white 0 160
7861 656 2315 S Color Red 0 160
7823 656 1559 S Color white 0 160
7841 656 1560 S Color Black 0 160
7813 656 1560 S Color Black 0 160
7856 656 1560 S Color Black 0 160
7855 656 1560 S Color Black 0 160
7807 659 0.00 8625 S Connectivity USB to IP (Lightning) 0 152