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 = 'en' 
  AND gp.group_id IN (165)

Query time 0.00021

JSON explain

{
  "query_block": {
    "select_id": 1,
    "cost": 0.013147765,
    "nested_loop": [
      {
        "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": ["const"],
          "loops": 1,
          "rows": 1,
          "cost": 0.001792605,
          "filtered": 100,
          "using_index": true
        }
      },
      {
        "table": {
          "table_name": "gp",
          "access_type": "ref",
          "possible_keys": ["PRIMARY", "idx_group_id"],
          "key": "idx_group_id",
          "key_length": "3",
          "used_key_parts": ["group_id"],
          "ref": ["const"],
          "loops": 1,
          "rows": 8,
          "cost": 0.0028194,
          "filtered": 100,
          "using_index": true
        }
      },
      {
        "table": {
          "table_name": "pfv",
          "access_type": "ref",
          "possible_keys": [
            "PRIMARY",
            "fl",
            "lang_code",
            "product_id",
            "fpl",
            "idx_product_feature_variant_id"
          ],
          "key": "PRIMARY",
          "key_length": "6",
          "used_key_parts": ["feature_id", "product_id"],
          "ref": [
            "u508912950_dev_2025.gpf.feature_id",
            "u508912950_dev_2025.gp.product_id"
          ],
          "loops": 8,
          "rows": 1,
          "cost": 0.00853576,
          "filtered": 100,
          "attached_condition": "pfv.lang_code = 'en'"
        }
      }
    ]
  }
}

Result

feature_id product_id variant_id group_id
618 14011 12903 165
618 14012 12905 165
618 14013 12907 165
618 14014 12909 165
618 14015 12911 165
618 14016 12853 165
618 14017 12913 165
618 14018 12915 165