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 (
    2603, 3136, 2587, 2761, 2694, 3096, 2723, 
    2742, 3556
  ) 
  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(457, 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.00223

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "89.69"
    },
    "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": 144,
            "rows_produced_per_join": 46,
            "filtered": "32.52",
            "index_condition": "(((`softwarepirmam_hewadelivard_cscart_4`.`v`.`product_id` in (2603,3136,2587,2761,2694,3096,2723,2742,3556)) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`lang_code` = 'en')) and (`softwarepirmam_hewadelivard_cscart_4`.`v`.`feature_id` is not null))",
            "cost_info": {
              "read_cost": "62.38",
              "eval_cost": "4.68",
              "prefix_cost": "67.06",
              "data_read_per_join": "36K"
            },
            "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": "11.71",
              "eval_cost": "0.45",
              "prefix_cost": "83.45",
              "data_read_per_join": "1K"
            },
            "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(457,`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.12",
              "eval_cost": "0.45",
              "prefix_cost": "85.01",
              "data_read_per_join": "10K"
            },
            "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.12",
              "eval_cost": "0.45",
              "prefix_cost": "86.57",
              "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.12",
              "eval_cost": "0.45",
              "prefix_cost": "88.13",
              "data_read_per_join": "13K"
            },
            "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.12",
              "eval_cost": "0.45",
              "prefix_cost": "89.69",
              "data_read_per_join": "1K"
            },
            "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
2742 653 3104 S Battery 690 mAh, with a playback time of 70 hours. 0 100
2761 653 3123 S Battery 800mAh , offering up to 27 hours of playback on a full charge. 0 100
3556 653 4531 S Battery 700mAh 0 100
2694 653 3056 S Battery 450mAh battery, providing up to 57 hours of playtime. 0 100
3096 653 3496 S Battery 70 hours of playback on a single charge, 5 minutes of quick charge provides 4 hours of playback 0 100
3136 653 3550 S Battery 600mAh, 40 hours of playback with ANC, 60 hours of playback without ANC 0 100
2723 653 3078 S Battery 500mAh, lasts up to 76 hours 0 100
2694 657 3006 E Brand JBL 0 0
2742 657 3006 E Brand JBL 0 0
2723 657 3006 E Brand JBL 0 0
2761 657 3006 E Brand JBL 0 0
3096 657 2082 E Brand Anker 0 0
3136 657 2082 E Brand Anker 0 0
2603 657 3006 E Brand JBL 0 0
3556 657 3933 E Brand Belkin 0 0
2587 657 3006 E Brand JBL 0 0
3096 654 3497 S Charging Type Charges via USB-C, fully charges in 2 hours, supports fast charging from any USB-C source 0 120
2761 654 3124 S Charging Type USB-C, taking about 2 hours for a full charge that provides up to 27 hours of playback. 0 120
3136 654 3551 S Charging Type Charges via USB-C, fully charges in 2 hours, a 5 minute fast charge provides 4 hours of playback 0 120
3556 654 3857 S Charging Type USB-C fast charging. Playback of 60 hours on a full charge. 0 120
2694 654 3057 S Charging Type USB-C, supports quick charging. 5 minutes of charge gives about 3 hours of playback. 0 120
2723 654 3079 S Charging Type USB-C. A full charge takes approximately 2 hours, and a quick 5-minute charge provides an additional 3 hours of playback. 0 120
2742 654 3105 S Charging Type USB-C in about 2 hours, with a 5-minute quick charge providing up to 3 hours of playback. 0 120
2742 656 1560 S Color Black 0 160
3556 656 1560 S Color Black 0 160
2603 656 1600 S Color Blue 0 160
2587 656 1560 S Color Black 0 160
2723 656 1560 S Color Black 0 160
3136 656 1560 S Color Black 0 160
2694 656 1560 S Color Black 0 160
3096 656 1560 S Color Black 0 160
2761 656 1558 S Color Pink 0 160
3096 659 3499 S Connectivity Bluetooth 5.3 with multipoint pairing, a range of 10 meters, supports SBC and AAC codecs 0 152
3556 659 4532 S Connectivity Bluetooth 5.4 with multipoint pairing for two devices 0 152
2603 659 4578 S Connectivity Wired USB-C connection. 0 152
3136 659 3552 S Connectivity Bluetooth 5.0, 3.5mm AUX, multipoint pairing 0 152
2694 659 1702 S Connectivity Bluetooth 5.3 0 152
2761 659 3125 S Connectivity Bluetooth 5.0, up to 10 meters wireless range. 0 152
2723 659 3080 S Connectivity Bluetooth 5.3 and 3.5mm audio jack (wired). 0 152
2742 659 3106 S Connectivity Bluetooth 5.3, also includes a 3.5 mm wired audio option. 0 152
3096 671 2111 S Headphone Ear Cup Types Over-Ear 0 0
2694 671 2113 S Headphone Ear Cup Types On-Ear 0 0
2761 671 2111 S Headphone Ear Cup Types Over-Ear 0 0
2603 671 2112 S Headphone Ear Cup Types In-Ear 0 0
3136 671 2111 S Headphone Ear Cup Types Over-Ear 0 0
2742 671 2111 S Headphone Ear Cup Types Over-Ear 0 0
2587 671 2112 S Headphone Ear Cup Types In-Ear 0 0
2723 671 2113 S Headphone Ear Cup Types On-Ear 0 0
3556 671 2111 S Headphone Ear Cup Types Over-Ear 0 0
3136 683 3553 S Input USB-C (charging) 0 310
3136 684 3554 S Output Audio output via Bluetooth or 3.5 mm AUX 0 320
3096 646 3498 S Sensor Physical on ear buttons for power, playback, volume, and a BassUp toggle 0 130