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 = 'vi' 
  AND gp.group_id IN (
    12491, 13420, 17236, 13826, 13971, 12446, 
    16571, 13821, 14711, 15422, 12979
  )

Query time 0.00427

JSON explain

{
  "query_block": {
    "select_id": 1,
    "nested_loop": [
      {
        "table": {
          "table_name": "gp",
          "access_type": "range",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "rows": 60,
          "filtered": 100,
          "index_condition": "gp.group_id in (12491,13420,17236,13826,13971,12446,16571,13821,14711,15422,12979)"
        }
      },
      {
        "table": {
          "table_name": "gpf",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "ref": ["dev_db.gp.group_id"],
          "rows": 1,
          "filtered": 100
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "idx_product_feature_variant_id",
          "key_length": "12",
          "used_key_parts": ["product_id", "feature_id", "lang_code"],
          "ref": ["dev_db.gp.product_id", "dev_db.gpf.feature_id", "const"],
          "rows": 1,
          "filtered": 100,
          "attached_condition": "pfv.lang_code = 'vi'",
          "using_index": true
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
19944 16416 69685 12446
19944 5743 69686 12446
19989 16550 69864 12491
19989 16549 69863 12491
19989 16548 69862 12491
19989 16547 69861 12491
19989 16546 69860 12491
19989 5590 69865 12491
20543 19138 71862 12979
20543 19137 71861 12979
20543 19136 71860 12979
20543 3640 71863 12979
21028 21055 73468 13420
21028 21054 73467 13420
21028 21053 73466 13420
21028 21052 73465 13420
21028 21051 73464 13420
21028 21050 73469 13420
21028 21049 73462 13420
21028 21048 73461 13420
21028 21047 73460 13420
21028 2498 73463 13420
21469 22715 75154 13821
21469 22714 75153 13821
21469 1768 75153 13821
21478 50075 75180 13826
21478 1748 75181 13826
21643 1439 75689 13971
21643 23198 75688 13971
22457 26321 78799 14711
22457 26320 78798 14711
22457 26319 78797 14711
22457 224 78800 14711
23304 32287 80848 15422
23304 32286 80847 15422
24317 42275 84736 16571
24317 42274 84735 16571
24317 42273 84734 16571
24317 42272 84733 16571
24317 42271 84732 16571
24317 42270 84731 16571
24317 42269 84744 16571
24317 42268 84743 16571
24317 42267 84742 16571
24317 42266 84741 16571
24317 42265 84740 16571
24317 42264 84739 16571
24317 24527 84730 16571
24317 42276 84737 16571
24317 42277 84738 16571
24991 49119 87172 17236
24991 49118 87171 17236
24991 49018 87170 17236
24991 49120 87173 17236
24991 49121 87174 17236