SELECT 
  pfv.feature_id, 
  pfv.product_id, 
  pfv.variant_id, 
  gp.group_id 
FROM 
  cscart_product_features_values AS pfv 
  INNER JOIN cscart_product_variation_group_products AS gp ON pfv.product_id = gp.product_id 
  INNER JOIN cscart_product_variation_group_features AS gpf ON gpf.group_id = gp.group_id 
  AND gpf.feature_id = pfv.feature_id 
WHERE 
  pfv.lang_code = 'ar' 
  AND gp.group_id IN (
    57, 54, 51, 48, 47, 46, 45, 44, 43, 39, 38, 
    37
  )

Query time 0.00078

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost_info": {
      "query_cost": "39.53"
    },
    "nested_loop": [
      {
        "table": {
          "table_name": "gpf",
          "access_type": "index",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "PRIMARY",
          "used_key_parts": [
            "feature_id",
            "group_id"
          ],
          "key_length": "6",
          "rows_examined_per_scan": 53,
          "rows_produced_per_join": 12,
          "filtered": "22.64",
          "using_index": true,
          "cost_info": {
            "read_cost": "4.73",
            "eval_cost": "1.20",
            "prefix_cost": "5.93",
            "data_read_per_join": "1K"
          },
          "used_columns": [
            "feature_id",
            "group_id"
          ],
          "attached_condition": "(`betaatif_store`.`gpf`.`group_id` in (57,54,51,48,47,46,45,44,43,39,38,37))"
        }
      },
      {
        "table": {
          "table_name": "gp",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "idx_group_id"
          ],
          "key": "idx_group_id",
          "used_key_parts": [
            "group_id"
          ],
          "key_length": "3",
          "ref": [
            "betaatif_store.gpf.group_id"
          ],
          "rows_examined_per_scan": 4,
          "rows_produced_per_join": 48,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "12.00",
            "eval_cost": "4.80",
            "prefix_cost": "22.73",
            "data_read_per_join": "768"
          },
          "used_columns": [
            "product_id",
            "group_id"
          ]
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "fpl",
          "used_key_parts": [
            "feature_id",
            "product_id",
            "lang_code"
          ],
          "key_length": "12",
          "ref": [
            "betaatif_store.gpf.feature_id",
            "betaatif_store.gp.product_id",
            "const"
          ],
          "rows_examined_per_scan": 1,
          "rows_produced_per_join": 48,
          "filtered": "100.00",
          "cost_info": {
            "read_cost": "12.00",
            "eval_cost": "4.80",
            "prefix_cost": "39.53",
            "data_read_per_join": "37K"
          },
          "used_columns": [
            "feature_id",
            "product_id",
            "variant_id",
            "lang_code"
          ]
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
2 516 6 37
2 517 7 37
2 518 9 37
2 519 12 37
2 520 6 38
2 521 7 38
2 522 9 38
2 523 12 38
2 524 6 39
2 525 7 39
2 526 9 39
2 527 12 39
2 540 6 43
2 541 7 43
2 542 9 43
2 543 12 43
2 544 6 44
2 545 7 44
2 546 9 44
2 547 12 44
2 548 6 45
2 549 7 45
2 550 9 45
2 551 12 45
2 552 6 46
2 553 7 46
2 554 9 46
2 555 11 46
2 556 6 47
2 557 7 47
2 558 9 47
2 559 11 47
2 560 6 48
2 561 7 48
2 562 9 48
2 563 11 48
2 572 6 51
2 573 7 51
2 574 9 51
2 575 11 51
2 584 6 54
2 585 7 54
2 586 9 54
2 587 12 54
2 596 6 57
2 597 7 57
2 598 9 57
2 599 12 57